You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by no...@apache.org on 2017/05/04 05:44:32 UTC

lucene-solr:branch_6x: added extra check if it is a liveNode

Repository: lucene-solr
Updated Branches:
  refs/heads/branch_6x 3546fc3f5 -> e3b0cfff3


added extra check if it is a liveNode


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

Branch: refs/heads/branch_6x
Commit: e3b0cfff396a7f92a4f621d598780116da916f3f
Parents: 3546fc3
Author: Noble Paul <no...@apache.org>
Authored: Thu May 4 15:13:01 2017 +0930
Committer: Noble Paul <no...@apache.org>
Committed: Thu May 4 15:14:13 2017 +0930

----------------------------------------------------------------------
 .../src/java/org/apache/solr/security/PKIAuthenticationPlugin.java  | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/e3b0cfff/solr/core/src/java/org/apache/solr/security/PKIAuthenticationPlugin.java
----------------------------------------------------------------------
diff --git a/solr/core/src/java/org/apache/solr/security/PKIAuthenticationPlugin.java b/solr/core/src/java/org/apache/solr/security/PKIAuthenticationPlugin.java
index ad7df66..845bf93 100644
--- a/solr/core/src/java/org/apache/solr/security/PKIAuthenticationPlugin.java
+++ b/solr/core/src/java/org/apache/solr/security/PKIAuthenticationPlugin.java
@@ -194,6 +194,7 @@ public class PKIAuthenticationPlugin extends AuthenticationPlugin implements Htt
   }
 
   PublicKey getRemotePublicKey(String nodename) {
+    if (!cores.getZkController().getZkStateReader().getClusterState().getLiveNodes().contains(nodename)) return null;
     String url = cores.getZkController().getZkStateReader().getBaseUrlForNodeName(nodename);
     try {
       String uri = url + PATH + "?wt=json&omitHeader=true";