You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sh...@apache.org on 2017/07/06 12:04:35 UTC

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

Repository: lucene-solr
Updated Branches:
  refs/heads/branch_5x 5513de33b -> 9f91c619a


added extra check if it is a liveNode

(cherry picked from commit e912b7c)


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

Branch: refs/heads/branch_5x
Commit: 9f91c619a35db89544f5c85795df4128c9f0d96a
Parents: 5513de3
Author: Noble Paul <no...@apache.org>
Authored: Thu May 4 11:13:01 2017 +0530
Committer: Shalin Shekhar Mangar <sh...@apache.org>
Committed: Thu Jul 6 17:34:28 2017 +0530

----------------------------------------------------------------------
 .../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/9f91c619/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 3c65af2..49c89d8 100644
--- a/solr/core/src/java/org/apache/solr/security/PKIAuthenticationPlugin.java
+++ b/solr/core/src/java/org/apache/solr/security/PKIAuthenticationPlugin.java
@@ -193,6 +193,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";