From: Zooko O'Whielacronx Date: Sun, 8 Mar 2009 03:50:39 +0000 (-0700) Subject: nodeadmin: node stops itself if a hotline file hasn't been touched in 120 seconds... X-Git-Tag: allmydata-tahoe-1.4.0~77 X-Git-Url: https://git.rkrishnan.org/pf/content/simplejson/provisioning?a=commitdiff_plain;h=7e7167f2e5b161a7af3a1d15992152a0f22470f3;p=tahoe-lafs%2Ftahoe-lafs.git nodeadmin: node stops itself if a hotline file hasn't been touched in 120 seconds now, instead of in 60 seconds A test failed on draco (MacPPC) because it took 67.1 seconds to get around to running the test, and the node had already stopped itself when the hotline file was 60 seconds old. --- diff --git a/src/allmydata/client.py b/src/allmydata/client.py index 766cae04..b997f306 100644 --- a/src/allmydata/client.py +++ b/src/allmydata/client.py @@ -300,7 +300,7 @@ class Client(node.Node, pollmixin.PollMixin): def _check_hotline(self, hotline_file): if os.path.exists(hotline_file): mtime = os.stat(hotline_file)[stat.ST_MTIME] - if mtime > time.time() - 60.0: + if mtime > time.time() - 120.0: return else: self.log("hotline file too old, shutting down")