提交 99105109 编写于 作者: S Stephan Ewen

[hotfix] [tests] Increase zookeeper session timeouts in tests them more robust

上级 c8c0ec2f
......@@ -193,7 +193,9 @@ public abstract class KafkaTestBase extends TestLogger {
LOG.info("-------------------------------------------------------------------------");
flinkPort = -1;
flink.shutdown();
if (flink != null) {
flink.shutdown();
}
for (KafkaServer broker : brokers) {
if (broker != null) {
......@@ -253,7 +255,11 @@ public abstract class KafkaTestBase extends TestLogger {
kafkaProperties.put("log.dir", tmpFolder.toString());
kafkaProperties.put("zookeeper.connect", zookeeperConnectionString);
kafkaProperties.put("message.max.bytes", "" + (50 * 1024 * 1024));
kafkaProperties.put("replica.fetch.max.bytes", "" + (50 * 1024 * 1024));
kafkaProperties.put("replica.fetch.max.bytes", String.valueOf(50 * 1024 * 1024));
// for CI stability, increase zookeeper session timeout
kafkaProperties.put("zookeeper.session.timeout.ms", "20000");
KafkaConfig kafkaConfig = new KafkaConfig(kafkaProperties);
KafkaServer server = new KafkaServer(kafkaConfig, new KafkaLocalSystemTime());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册