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:01 GMT
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

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/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 <rhauch@gmail.com>
Authored: Thu Aug 31 14:53:44 2017 -0700
Committer: Ewen Cheslack-Postava <me@ewencp.org>
Committed: Thu Aug 31 14:53:57 2017 -0700

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

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"]
-        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):

View raw message