SOLR-8848:When a SolrJ alias watch is triggered, the new alias state should be logged

This commit is contained in:
Erick Erickson 2016-07-05 18:03:56 -07:00
parent 24e5c1c205
commit da1f6e9813
1 changed files with 1 additions and 0 deletions

View File

@ -405,6 +405,7 @@ public class ZkStateReader implements Closeable {
final Stat stat = new Stat();
final byte[] data = zkClient.getData(ALIASES, thisWatch, stat, true);
ZkStateReader.this.aliases = ClusterState.load(data);
LOG.info("New alias definition is: " + ZkStateReader.this.aliases.toString());
}
} catch (KeeperException.ConnectionLossException | KeeperException.SessionExpiredException e) {
LOG.warn("ZooKeeper watch triggered, but Solr cannot talk to ZK: [{}]", e.getMessage());