Repository: kafka
Updated Branches:
  refs/heads/0.11.0 c3980a22b -> 5ec185e27


MINOR: Increase timeout of Zookeeper service in system tests

The previous timeout was 10 seconds, but system test failures have occurred 
when Zookeeper has started after about 11 seconds. Increasing the timeout to 30 
seconds, since most of the time this extra time will not be required, and when 
it is it will prevent a failed system test.

In addition to merging to `trunk`, please backport to the `0.11.x` and 
`0.10.2.x` branches.

Author: Randall Hauch <rha...@gmail.com>

Reviewers: Ewen Cheslack-Postava <e...@confluent.io>

Closes #3774 from 
rhauch/MINOR-Increase-timeout-of-zookeeper-service-in-system-tests

(cherry picked from commit 75070bdb5d70cc0b2f52faf4f769144f68f02ee2)
Signed-off-by: Ewen Cheslack-Postava <m...@ewencp.org>


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

Branch: refs/heads/0.11.0
Commit: 5ec185e277051798f048657df944c643562e86e1
Parents: c3980a2
Author: Randall Hauch <rha...@gmail.com>
Authored: Thu Aug 31 14:53:44 2017 -0700
Committer: Ewen Cheslack-Postava <m...@ewencp.org>
Committed: Thu Aug 31 14:53:57 2017 -0700

----------------------------------------------------------------------
 tests/kafkatest/services/zookeeper.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kafka/blob/5ec185e2/tests/kafkatest/services/zookeeper.py
----------------------------------------------------------------------
diff --git a/tests/kafkatest/services/zookeeper.py 
b/tests/kafkatest/services/zookeeper.py
index f484fb1..b1eed33 100644
--- a/tests/kafkatest/services/zookeeper.py
+++ b/tests/kafkatest/services/zookeeper.py
@@ -79,7 +79,7 @@ class ZookeeperService(KafkaPathResolverMixin, Service):
         start_cmd += "/mnt/zookeeper.properties 1>> %(path)s 2>> %(path)s &" % 
self.logs["zk_log"]
         node.account.ssh(start_cmd)
 
-        wait_until(lambda: self.listening(node), timeout_sec=10, 
err_msg="Zookeeper node failed to start")
+        wait_until(lambda: self.listening(node), timeout_sec=30, 
err_msg="Zookeeper node failed to start")
 
     def listening(self, node):
         try:

Reply via email to