Repository: ambari
Updated Branches:
  refs/heads/trunk 043e35a6b -> 4cb8180de


AMBARI-11635 [WinTP2] Zookeeper service check fails

Repeat test in case of failure at installation time due to ZK startup slowness.


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

Branch: refs/heads/trunk
Commit: 4cb8180de671b1deab1ec814f481a7ed1e7c5724
Parents: 043e35a
Author: Florian Barca <fba...@hortonworks.com>
Authored: Thu Jun 11 22:31:20 2015 -0700
Committer: Florian Barca <fba...@hortonworks.com>
Committed: Thu Jun 11 22:33:11 2015 -0700

----------------------------------------------------------------------
 .../ZOOKEEPER/3.4.5.2.0/package/scripts/service_check.py           | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/4cb8180d/ambari-server/src/main/resources/common-services/ZOOKEEPER/3.4.5.2.0/package/scripts/service_check.py
----------------------------------------------------------------------
diff --git 
a/ambari-server/src/main/resources/common-services/ZOOKEEPER/3.4.5.2.0/package/scripts/service_check.py
 
b/ambari-server/src/main/resources/common-services/ZOOKEEPER/3.4.5.2.0/package/scripts/service_check.py
index 2d2b793..b601c58 100644
--- 
a/ambari-server/src/main/resources/common-services/ZOOKEEPER/3.4.5.2.0/package/scripts/service_check.py
+++ 
b/ambari-server/src/main/resources/common-services/ZOOKEEPER/3.4.5.2.0/package/scripts/service_check.py
@@ -63,7 +63,7 @@ class ZookeeperServiceCheckWindows(ZookeeperServiceCheck):
 
     smoke_cmd = os.path.join(params.hdp_root,"Run-SmokeTests.cmd")
     service = "Zookeeper"
-    Execute(format("cmd /C {smoke_cmd} {service}"), user=params.zk_user, 
logoutput=True)
+    Execute(format("cmd /C {smoke_cmd} {service}"), user=params.zk_user, 
logoutput=True, tries=3, try_sleep=20)
 
 if __name__ == "__main__":
   ZookeeperServiceCheck().execute()

Reply via email to