Repository: ambari Updated Branches: refs/heads/branch-2.4 676bf8c91 -> d6da51308
AMBARI-18505. Ambari Status commands should enforce a timeout < heartbeat interval (aonishuk) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/d6da5130 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/d6da5130 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/d6da5130 Branch: refs/heads/branch-2.4 Commit: d6da51308f1506467a8181c0a529817d8e2e7a21 Parents: 676bf8c Author: Andrew Onishuk <[email protected]> Authored: Mon Oct 3 12:41:08 2016 +0300 Committer: Andrew Onishuk <[email protected]> Committed: Mon Oct 3 12:41:08 2016 +0300 ---------------------------------------------------------------------- ambari-agent/src/main/python/ambari_agent/ActionQueue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/d6da5130/ambari-agent/src/main/python/ambari_agent/ActionQueue.py ---------------------------------------------------------------------- diff --git a/ambari-agent/src/main/python/ambari_agent/ActionQueue.py b/ambari-agent/src/main/python/ambari_agent/ActionQueue.py index 32d6f84..198ae03 100644 --- a/ambari-agent/src/main/python/ambari_agent/ActionQueue.py +++ b/ambari-agent/src/main/python/ambari_agent/ActionQueue.py @@ -86,7 +86,7 @@ class ActionQueue(threading.Thread): self.tmpdir = config.get('agent', 'prefix') self.customServiceOrchestrator = CustomServiceOrchestrator(config, controller) self.parallel_execution = config.get_parallel_exec_option() - self.status_command_timeout = int(self.config.get('agent', 'status_command_timeout', 5)) + self.status_command_timeout = int(self.config.get('agent', 'status_command_timeout', 2)) if self.parallel_execution == 1: logger.info("Parallel execution is enabled, will execute agent commands in parallel")
