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

(cherry picked from commit da1f6e9)
This commit is contained in:
Erick Erickson 2016-07-05 18:03:56 -07:00
parent 7d092fac4e
commit 98ad225cf4
1 changed files with 1 additions and 0 deletions

View File

@ -398,6 +398,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());