mirror of https://github.com/apache/lucene.git
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:
parent
cb0b53eaac
commit
6ae76082e6
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue