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:
Mark Robert Miller 2010-10-18 16:30:34 +00:00
parent f5c9e51a8f
commit 330be7e299
1 changed files with 7 additions and 0 deletions

View File

@ -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() {