lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From no...@apache.org
Subject lucene-solr:branch_7_6: SOLR-12977: fixed bug
Date Mon, 12 Nov 2018 13:08:12 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/branch_7_6 127399cff -> 5cee6e467


SOLR-12977: fixed bug


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/5cee6e46
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/5cee6e46
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/5cee6e46

Branch: refs/heads/branch_7_6
Commit: 5cee6e467bf272beea7055c72c3bbc6ba89ac591
Parents: 127399c
Author: Noble Paul <noble@apache.org>
Authored: Tue Nov 13 00:07:58 2018 +1100
Committer: Noble Paul <noble@apache.org>
Committed: Tue Nov 13 00:07:58 2018 +1100

----------------------------------------------------------------------
 .../solr/client/solrj/impl/SolrClientNodeStateProvider.java     | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/5cee6e46/solr/solrj/src/java/org/apache/solr/client/solrj/impl/SolrClientNodeStateProvider.java
----------------------------------------------------------------------
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 fc3564f..8a4b35c 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,


Mime
View raw message