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;
|
CloudSolrClient solrClient;
|
||||||
|
|
||||||
public boolean isNodeAlive(String node) {
|
public boolean isNodeAlive(String node) {
|
||||||
if (zkClientClusterStateProvider != null && zkClientClusterStateProvider.getLiveNodes().contains(node))
|
if (zkClientClusterStateProvider != null) {
|
||||||
return true;
|
return zkClientClusterStateProvider.getLiveNodes().contains(node);
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
public ClientSnitchCtx(SnitchInfo perSnitch,
|
public ClientSnitchCtx(SnitchInfo perSnitch,
|
||||||
|
|
Loading…
Reference in New Issue