Repository: ambari Updated Branches: refs/heads/branch-feature-AMBARI-12556 eb568132b -> df9c2378a
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/branch-feature-AMBARI-12556 Commit: 02eae2e710a95fd31718f79bdffb37535cf0b485 Parents: 75f1a29 Author: Sumit Mohanty <[email protected]> Authored: Tue Mar 14 15:09:48 2017 -0700 Committer: Sumit Mohanty <[email protected]> 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")
