Log main cluster state version on update for easier debugging

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1682239 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shalin Shekhar Mangar 2015-05-28 13:23:48 +00:00
parent 8182169bb4
commit c4acf28dd1
1 changed files with 1 additions and 0 deletions

View File

@ -329,6 +329,7 @@ public class ZkStateReader implements Closeable {
// update volatile
ZkStateReader.this.clusterState = constructState(ln, thisWatch);
}
log.info("Updated cluster state version to " + ZkStateReader.this.clusterState.getZkClusterStateVersion());
} catch (KeeperException e) {
if (e.code() == KeeperException.Code.SESSIONEXPIRED
|| e.code() == KeeperException.Code.CONNECTIONLOSS) {