Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 2d16e77a6 -> dd583ecc3


AMBARI-18369. Make Execute timeout to be able to kill process trees which 
doesn't respond to SIGTERM (aonishuk)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/dd583ecc
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/dd583ecc
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/dd583ecc

Branch: refs/heads/branch-2.5
Commit: dd583ecc351341a9f65866abf26e236ad0375e7a
Parents: 2d16e77
Author: Andrew Onishuk <aonis...@hortonworks.com>
Authored: Tue Sep 20 10:50:14 2016 +0300
Committer: Andrew Onishuk <aonis...@hortonworks.com>
Committed: Tue Sep 20 10:50:14 2016 +0300

----------------------------------------------------------------------
 .../HIVE/0.12.0.2.0/package/alerts/alert_hive_metastore.py         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/dd583ecc/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/alerts/alert_hive_metastore.py
----------------------------------------------------------------------
diff --git 
a/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/alerts/alert_hive_metastore.py
 
b/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/alerts/alert_hive_metastore.py
index cd1eded..0873730 100644
--- 
a/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/alerts/alert_hive_metastore.py
+++ 
b/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/alerts/alert_hive_metastore.py
@@ -196,7 +196,7 @@ def execute(configurations={}, parameters={}, 
host_name=None):
     try:
       Execute(cmd, user=smokeuser,
         path=["/bin/", "/usr/bin/", "/usr/sbin/", bin_dir],
-        timeout=5,
+        timeout=int(check_command_timeout),
         timeout_kill_strategy=TerminateStrategy.KILL_PROCESS_TREE,
       )
 

Reply via email to