mirror of https://github.com/apache/lucene.git
SOLR-12977: fixed bug
This commit is contained in:
parent
f357c06276
commit
e81dd4e870
|
@ -316,8 +316,9 @@ public class SolrClientNodeStateProvider implements NodeStateProvider, MapWriter
|
|||
CloudSolrClient solrClient;
|
||||
|
||||
public boolean isNodeAlive(String node) {
|
||||
if (zkClientClusterStateProvider != null && zkClientClusterStateProvider.getLiveNodes().contains(node))
|
||||
return true;
|
||||
if (zkClientClusterStateProvider != null) {
|
||||
return zkClientClusterStateProvider.getLiveNodes().contains(node);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
public ClientSnitchCtx(SnitchInfo perSnitch,
|
||||
|
|
Loading…
Reference in New Issue