You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by tr...@apache.org on 2016/06/29 08:41:52 UTC
flink git commit: [FLINK-4126] [tests] Increase timeout for
ZooKeeperLeaderElectionTest.testZooKeeperReelection
Repository: flink
Updated Branches:
refs/heads/master 6979d060b -> dbe41f487
[FLINK-4126] [tests] Increase timeout for ZooKeeperLeaderElectionTest.testZooKeeperReelection
The test case failed because it exceeded the deadline. Increasing the deadline and decreasing
the number of reelection should harden the test case.
Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/dbe41f48
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/dbe41f48
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/dbe41f48
Branch: refs/heads/master
Commit: dbe41f48745bf52458291290bd2aa0fdc8d18560
Parents: 6979d06
Author: Till Rohrmann <tr...@apache.org>
Authored: Wed Jun 29 10:39:08 2016 +0200
Committer: Till Rohrmann <tr...@apache.org>
Committed: Wed Jun 29 10:41:30 2016 +0200
----------------------------------------------------------------------
.../runtime/leaderelection/ZooKeeperLeaderElectionTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flink/blob/dbe41f48/flink-runtime/src/test/java/org/apache/flink/runtime/leaderelection/ZooKeeperLeaderElectionTest.java
----------------------------------------------------------------------
diff --git a/flink-runtime/src/test/java/org/apache/flink/runtime/leaderelection/ZooKeeperLeaderElectionTest.java b/flink-runtime/src/test/java/org/apache/flink/runtime/leaderelection/ZooKeeperLeaderElectionTest.java
index 6ebf2dd..1c0290a 100644
--- a/flink-runtime/src/test/java/org/apache/flink/runtime/leaderelection/ZooKeeperLeaderElectionTest.java
+++ b/flink-runtime/src/test/java/org/apache/flink/runtime/leaderelection/ZooKeeperLeaderElectionTest.java
@@ -137,9 +137,9 @@ public class ZooKeeperLeaderElectionTest extends TestLogger {
configuration.setString(ConfigConstants.ZOOKEEPER_QUORUM_KEY, testingServer.getConnectString());
configuration.setString(ConfigConstants.RECOVERY_MODE, "zookeeper");
- Deadline deadline = new FiniteDuration(3, TimeUnit.MINUTES).fromNow();
+ Deadline deadline = new FiniteDuration(5, TimeUnit.MINUTES).fromNow();
- int num = 25;
+ int num = 20;
ZooKeeperLeaderElectionService[] leaderElectionService = new ZooKeeperLeaderElectionService[num];
TestingContender[] contenders = new TestingContender[num];