You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by tf...@apache.org on 2017/05/08 22:07:21 UTC

[07/50] [abbrv] lucene-solr:jira/solr-10233: added extra check if it is a liveNode

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/e912b7cb
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/e912b7cb
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/e912b7cb

Branch: refs/heads/jira/solr-10233
Commit: e912b7cb5c68fbb87b874d41068cf5a3aea17da0
Parents: 3a7aedc
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:13:01 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/e912b7cb/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 fcc0560..172659a 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";