You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by sm...@apache.org on 2017/03/14 22:10:56 UTC
ambari git commit: AMBARI-20448. Some random status command takes
more than 5 seconds to execute (Eugene Chekanskiy via smohanty)
Repository: ambari
Updated Branches:
refs/heads/trunk 75f1a29e6 -> 02eae2e71
AMBARI-20448. Some random status command takes more than 5 seconds to execute (Eugene Chekanskiy via smohanty)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/02eae2e7
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/02eae2e7
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/02eae2e7
Branch: refs/heads/trunk
Commit: 02eae2e710a95fd31718f79bdffb37535cf0b485
Parents: 75f1a29
Author: Sumit Mohanty <sm...@hortonworks.com>
Authored: Tue Mar 14 15:09:48 2017 -0700
Committer: Sumit Mohanty <sm...@hortonworks.com>
Committed: Tue Mar 14 15:09:48 2017 -0700
----------------------------------------------------------------------
.../src/main/python/ambari_agent/StatusCommandsExecutor.py | 6 ++++++
1 file changed, 6 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/02eae2e7/ambari-agent/src/main/python/ambari_agent/StatusCommandsExecutor.py
----------------------------------------------------------------------
diff --git a/ambari-agent/src/main/python/ambari_agent/StatusCommandsExecutor.py b/ambari-agent/src/main/python/ambari_agent/StatusCommandsExecutor.py
index 3b23f1c..eaa24c2 100644
--- a/ambari-agent/src/main/python/ambari_agent/StatusCommandsExecutor.py
+++ b/ambari-agent/src/main/python/ambari_agent/StatusCommandsExecutor.py
@@ -164,6 +164,12 @@ class MultiProcessStatusCommandsExecutor(StatusCommandsExecutor):
"""
Internal method that running in separate process.
"""
+ # cleanup monkey-patching results in child process, as it causing problems
+ import subprocess
+ reload(subprocess)
+ import multiprocessing
+ reload(multiprocessing)
+
bind_debug_signal_handlers()
self._log_message(logging.INFO, "StatusCommandsExecutor process started")