Commit 7123060
authored
Fix flaky TestReadOnly.testConnectionStateNewClient in ZooKeeper 3.9.3 (#1272)
ZOOKEEPER-4508 reports `SessionExpired` after exhausting session timeout
in session establishment instead of endless retries. It is easy to get
in this now with small session timeout.
Besides above, `sessionTimeoutMs` should bigger than `connectionTimeoutMs`,
while default `Timing::session()` and `Timing::connection()` are `2s` and
`10s` respectively now.
```
// from CuratorZookeeperClient
if (sessionTimeoutMs < connectionTimeoutMs) {
log.warn(
"session timeout [{}] is less than connection timeout [{}]", sessionTimeoutMs, connectionTimeoutMs);
}
```1 parent fcd708f commit 7123060
File tree
1 file changed
+1
-1
lines changed- curator-test/src/main/java/org/apache/curator/test
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
0 commit comments