Skip to content

Commit

Permalink
added extra check if it is a liveNode
Browse files Browse the repository at this point in the history
(cherry picked from commit e912b7c)

(cherry picked from commit 9f91c61)
  • Loading branch information
noblepaul authored and shalinmangar committed Jul 6, 2017
1 parent dece98f commit 2f5ecbc
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -200,6 +200,7 @@ private static PKIHeaderData parseCipher(String cipher, PublicKey key) {
}

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";
Expand Down

0 comments on commit 2f5ecbc

Please sign in to comment.