提交 dbe41f48 编写于 作者: T Till Rohrmann

[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.
上级 6979d060
......@@ -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];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册