case NodeChildrenChanged:
case NodeCreated:
case NodeDataChanged:
// Some irrelevant node event triggered the watch, need to re-set it
try {
ZooKeeperIface zk = zkConnectionManager.getClient();
if (!setWatchIfNodeExists(zk, candidatePath, this)) {
leaderElectionCallback.removed();
}
} catch (Exception e) {
leaderElectionCallback.error(e);