From 6892faac32bd8d2bf3a64019a6d9f50b57a6c63f Mon Sep 17 00:00:00 2001 From: franz1981 Date: Tue, 20 Apr 2021 16:32:20 +0200 Subject: [PATCH] CURATOR-594: TestingZooKeeperMain isn't setting tickTime, if configured --- .../main/java/org/apache/curator/test/TestingZooKeeperMain.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/curator-test/src/main/java/org/apache/curator/test/TestingZooKeeperMain.java b/curator-test/src/main/java/org/apache/curator/test/TestingZooKeeperMain.java index cdf59d07be..4c7bec66a2 100644 --- a/curator-test/src/main/java/org/apache/curator/test/TestingZooKeeperMain.java +++ b/curator-test/src/main/java/org/apache/curator/test/TestingZooKeeperMain.java @@ -271,6 +271,8 @@ public TestZooKeeperServer(FileTxnSnapLog txnLog, ServerConfig config) { this.txnLog = txnLog; this.setTxnLogFactory(txnLog); + // tickTime would affect min and max session timeout: should be set first + this.setTickTime(config.getTickTime()); this.setMinSessionTimeout(config.getMinSessionTimeout()); this.setMaxSessionTimeout(config.getMaxSessionTimeout()); }