ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nc...@apache.org
Subject [07/21] ambari git commit: AMBARI-18369. Make Execute timeout to be able to kill process trees which doesn't respond to SIGTERM (aonishuk)
Date Wed, 21 Sep 2016 13:29:29 GMT
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/f90b55a8
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/f90b55a8
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/f90b55a8

Branch: refs/heads/branch-dev-patch-upgrade
Commit: f90b55a8bde1baa6cf2321d63596f3b8329292d9
Parents: e54c31e
Author: Andrew Onishuk <aonishuk@hortonworks.com>
Authored: Tue Sep 20 10:43:45 2016 +0300
Committer: Andrew Onishuk <aonishuk@hortonworks.com>
Committed: Tue Sep 20 10:49:13 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/f90b55a8/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,
       )
 


Mime
View raw message