mirror of https://github.com/apache/lucene.git
SOLR-2172: ZkController should update it's live node set after registering itself
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1023891 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f5c9e51a8f
commit
330be7e299
|
@ -377,6 +377,13 @@ public final class ZkController {
|
|||
}
|
||||
}
|
||||
zkClient.getChildren(ZkStateReader.LIVE_NODES_ZKNODE, liveNodeWatcher);
|
||||
try {
|
||||
zkStateReader.updateLiveNodes();
|
||||
} catch (IOException e) {
|
||||
log.error("", e);
|
||||
throw new ZooKeeperException(SolrException.ErrorCode.SERVER_ERROR,
|
||||
"", e);
|
||||
}
|
||||
}
|
||||
|
||||
public String getNodeName() {
|
||||
|
|
Loading…
Reference in New Issue