Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 a526a07cb -> db9989d10


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/db9989d1
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/db9989d1
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/db9989d1

Branch: refs/heads/branch-2.5
Commit: db9989d10b5820ac40f4d6e1503cb681201635a5
Parents: a526a07
Author: Sumit Mohanty <smoha...@hortonworks.com>
Authored: Tue Mar 14 15:09:48 2017 -0700
Committer: Sumit Mohanty <smoha...@hortonworks.com>
Committed: Tue Mar 14 15:11:56 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/db9989d1/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")
 

Reply via email to