SOLR-12977: fixed bug

This commit is contained in:
Noble Paul 2018-11-13 00:07:58 +11:00
parent f357c06276
commit e81dd4e870
1 changed files with 3 additions and 2 deletions

View File

@ -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,