kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ewe...@apache.org
Subject kafka git commit: MINOR: Increase timeout of Zookeeper service in system tests
Date Thu, 31 Aug 2017 21:54:09 GMT
Repository: kafka
Updated Branches:
  refs/heads/0.10.2 c9168e10f -> b4271b5cb


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 <rhauch@gmail.com>

Reviewers: Ewen Cheslack-Postava <ewen@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 <me@ewencp.org>


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

Branch: refs/heads/0.10.2
Commit: b4271b5cbc229143d485d9375b35cbb7a3a826c1
Parents: c9168e1
Author: Randall Hauch <rhauch@gmail.com>
Authored: Thu Aug 31 14:53:44 2017 -0700
Committer: Ewen Cheslack-Postava <me@ewencp.org>
Committed: Thu Aug 31 14:54:05 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/b4271b5c/tests/kafkatest/services/zookeeper.py
----------------------------------------------------------------------
diff --git a/tests/kafkatest/services/zookeeper.py b/tests/kafkatest/services/zookeeper.py
index 6606598..d10a2bc 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:


Mime
View raw message