You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ratis.apache.org by GitBox <gi...@apache.org> on 2020/11/24 21:42:40 UTC

[GitHub] [incubator-ratis] hanishakoneru opened a new pull request #297: RATIS-1177. NPE when RaftServerJmxAdapter queries getLeaderId.

hanishakoneru opened a new pull request #297:
URL: https://github.com/apache/incubator-ratis/pull/297


   ## What changes were proposed in this pull request?
   
   When a follower is in candidate state but unable to get votes and also unable to get new leader info, the JMXBeanServer query to getLeaderId can throw a NPE. 
   
   
   ## What is the link to the Apache JIRA
   
   This happens because RaftServerJmxAdapter#getLeaderId() does not check whether leaderId is null before calling toString() on it.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-ratis] szetszwo merged pull request #297: RATIS-1177. NPE when RaftServerJmxAdapter queries getLeaderId.

Posted by GitBox <gi...@apache.org>.
szetszwo merged pull request #297:
URL: https://github.com/apache/incubator-ratis/pull/297


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org