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

Commit

Permalink
Merge pull request #1280 from spotify/dxia/zk-connection-state
Browse files Browse the repository at this point in the history
Also set cluster ID when ZK connection state transitions to CONNECTED
  • Loading branch information
davidxia authored Sep 23, 2019
2 parents b311b79 + a53832a commit 95c6c11
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public void process(WatchedEvent event) {
@Override
public void stateChanged(CuratorFramework client, ConnectionState newState) {
log.info("DefaultZooKeeperClient connection state change - {}", newState);
if (newState == ConnectionState.RECONNECTED) {
if (newState.isConnected()) {
checkClusterIdExists(clusterId, "connectionStateListener");
}
}
Expand Down

0 comments on commit 95c6c11

Please sign in to comment.