From e81dd4e870d2a9b27e1f4366e92daa6dba054da8 Mon Sep 17 00:00:00 2001 From: Noble Paul Date: Tue, 13 Nov 2018 00:07:58 +1100 Subject: [PATCH] SOLR-12977: fixed bug --- .../solr/client/solrj/impl/SolrClientNodeStateProvider.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/SolrClientNodeStateProvider.java b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/SolrClientNodeStateProvider.java index fc3564f28b6..8a4b35c6d27 100644 --- a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/SolrClientNodeStateProvider.java +++ b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/SolrClientNodeStateProvider.java @@ -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,