提交 8bd98e09 编写于 作者: U Ufuk Celebi

[FLINK-3096] Retry cleaned checkpoint directory check

上级 2cf48930
......@@ -533,8 +533,14 @@ public class ChaosMonkeyITCase extends TestLogger {
LOG.info("Checking " + ZooKeeper.getClientNamespace() +
ConfigConstants.DEFAULT_ZOOKEEPER_CHECKPOINTS_PATH);
List<String> checkpoints = ZooKeeper.getChildren(ConfigConstants.DEFAULT_ZOOKEEPER_CHECKPOINTS_PATH);
assertEquals("Unclean checkpoints: " + checkpoints, 0, checkpoints.size());
for (int i = 0; i < 10; i++) {
List<String> checkpoints = ZooKeeper.getChildren(ConfigConstants.DEFAULT_ZOOKEEPER_CHECKPOINTS_PATH);
assertEquals("Unclean checkpoints: " + checkpoints, 0, checkpoints.size());
LOG.info("Unclean... retrying in 2s.");
Thread.sleep(2000);
}
LOG.info("Checking " + ZooKeeper.getClientNamespace() +
ConfigConstants.DEFAULT_ZOOKEEPER_CHECKPOINT_COUNTER_PATH);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册