mirror of https://github.com/apache/lucene.git
added extra check if it is a liveNode
This commit is contained in:
parent
3a7aedcef9
commit
e912b7cb5c
|
@ -193,6 +193,7 @@ public class PKIAuthenticationPlugin extends AuthenticationPlugin implements Htt
|
||||||
}
|
}
|
||||||
|
|
||||||
PublicKey getRemotePublicKey(String nodename) {
|
PublicKey getRemotePublicKey(String nodename) {
|
||||||
|
if (!cores.getZkController().getZkStateReader().getClusterState().getLiveNodes().contains(nodename)) return null;
|
||||||
String url = cores.getZkController().getZkStateReader().getBaseUrlForNodeName(nodename);
|
String url = cores.getZkController().getZkStateReader().getBaseUrlForNodeName(nodename);
|
||||||
try {
|
try {
|
||||||
String uri = url + PATH + "?wt=json&omitHeader=true";
|
String uri = url + PATH + "?wt=json&omitHeader=true";
|
||||||
|
|
Loading…
Reference in New Issue