SOLR-6610

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1635163 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Noble Paul 2014-10-29 14:56:49 +00:00
parent cb0b53eaac
commit 6ae76082e6
1 changed files with 2 additions and 1 deletions

View File

@ -590,7 +590,8 @@ public final class ZkController {
try {
boolean createdWatchesAndUpdated = false;
if (zkClient.exists(ZkStateReader.LIVE_NODES_ZKNODE, true)) {
Stat stat = zkClient.exists(ZkStateReader.LIVE_NODES_ZKNODE, null, true);
if (stat!= null && stat.getNumChildren()>0) {
zkStateReader.createClusterStateWatchersAndUpdate();
createdWatchesAndUpdated = true;
publishAndWaitForDownStates();