You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@samza.apache.org by sh...@apache.org on 2019/02/02 00:38:03 UTC
[samza] branch master updated: Update timeout for flaky test ZK
connection test
This is an automated email from the ASF dual-hosted git repository.
shanthoosh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/samza.git
The following commit(s) were added to refs/heads/master by this push:
new e4f9731 Update timeout for flaky test ZK connection test
new 93e6192 Merge pull request #902 from dxichen/master
e4f9731 is described below
commit e4f9731f0fac18938014ed2f3356866700f258c9
Author: Daniel Chen <dc...@linkedin.com>
AuthorDate: Fri Feb 1 16:01:50 2019 -0800
Update timeout for flaky test ZK connection test
---
samza-core/src/test/java/org/apache/samza/zk/TestZkUtils.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/samza-core/src/test/java/org/apache/samza/zk/TestZkUtils.java b/samza-core/src/test/java/org/apache/samza/zk/TestZkUtils.java
index 29e861b..d98392d 100644
--- a/samza-core/src/test/java/org/apache/samza/zk/TestZkUtils.java
+++ b/samza-core/src/test/java/org/apache/samza/zk/TestZkUtils.java
@@ -57,8 +57,8 @@ public class TestZkUtils {
private static EmbeddedZookeeper zkServer = null;
private static final ZkKeyBuilder KEY_BUILDER = new ZkKeyBuilder("test");
private ZkClient zkClient = null;
- private static final int SESSION_TIMEOUT_MS = 500;
- private static final int CONNECTION_TIMEOUT_MS = 1000;
+ private static final int SESSION_TIMEOUT_MS = 5000;
+ private static final int CONNECTION_TIMEOUT_MS = 10000;
private ZkUtils zkUtils;
@Rule
@@ -77,6 +77,7 @@ public class TestZkUtils {
new ZkConnection("127.0.0.1:" + zkServer.getPort(), SESSION_TIMEOUT_MS),
CONNECTION_TIMEOUT_MS);
} catch (Exception e) {
+ e.printStackTrace();
Assert.fail("Client connection setup failed. Aborting tests..");
}
try {