8288: Do not call operations.destroy() as a last resort, just abandon the llfuse...
authorTom Clegg <tom@curoverse.com>
Tue, 2 Feb 2016 21:46:35 +0000 (16:46 -0500)
committerTom Clegg <tom@curoverse.com>
Wed, 3 Feb 2016 17:51:38 +0000 (12:51 -0500)
services/fuse/arvados_fuse/command.py
services/fuse/tests/mount_test_base.py

index ae0c920966f83988da35844f30fef5af8ac9c977..6d5300444ad58ee2cff24e0124f807d3ad6611c3 100644 (file)
@@ -123,9 +123,8 @@ class Mount(object):
         if self.llfuse_thread.is_alive():
             self.logger.warning("Mount.__exit__:"
                                 " llfuse thread still alive %fs after umount"
-                                " -- resorting to operations.destroy()",
+                                " -- abandoning and exiting anyway",
                                 self.args.unmount_timeout)
-            self.operations.destroy()
 
     def run(self):
         if self.args.exec_args:
index 91a492971bb2c4bc16dce534bf153c458049f3b8..c79daf80f54156b6e304839c01a66221217ae3c9 100644 (file)
@@ -68,12 +68,11 @@ class MountTestBase(unittest.TestCase):
         del self.pool
 
         subprocess.call(["fusermount", "-u", "-z", self.mounttmp])
-        self.llfuse_thread.join(timeout=0.1)
+        self.llfuse_thread.join(timeout=1)
         if self.llfuse_thread.is_alive():
             logger.warning("MountTestBase.tearDown():"
-                           " llfuse thread still alive 100ms after umount"
-                           " -- resorting to operations.destroy()")
-            self.operations.destroy()
+                           " llfuse thread still alive 1s after umount"
+                           " -- abandoning and exiting anyway")
 
         os.rmdir(self.mounttmp)
         if self.keeptmp: