Skip to content
This repository was archived by the owner on Sep 12, 2024. It is now read-only.

Commit 95c6c11

Browse files
authored
Merge pull request #1280 from spotify/dxia/zk-connection-state
Also set cluster ID when ZK connection state transitions to CONNECTED
2 parents b311b79 + a53832a commit 95c6c11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

helios-services/src/main/java/com/spotify/helios/servicescommon/coordination/DefaultZooKeeperClient.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public void process(WatchedEvent event) {
9696
@Override
9797
public void stateChanged(CuratorFramework client, ConnectionState newState) {
9898
log.info("DefaultZooKeeperClient connection state change - {}", newState);
99-
if (newState == ConnectionState.RECONNECTED) {
99+
if (newState.isConnected()) {
100100
checkClusterIdExists(clusterId, "connectionStateListener");
101101
}
102102
}

0 commit comments

Comments
 (0)