bharatviswa504 opened a new pull request #300: URL: https://github.com/apache/incubator-ratis/pull/300
## What changes were proposed in this pull request? Right now we have isLeader() but it says false when it is leader and not ready. There is no way to figure out if it is leader and not ready from this API, we need to call isLeader and isLeaderReady for that. This Jira exposes the ServerStatus with the following info. NOT_LEADER, LEADER_AND_READY, and LEADER_AND_NOT_READY. The purpose of Jira is to avoid multiple calls like isLeader and isLeaderReady, trying to achieve the same with a single API. Expose ServerStatus API with the following info. NOT_LEADER, LEADER_AND_READY, and LEADER_AND_NOT_READY. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/RATIS-1180 ## How was this patch tested? ---------------------------------------------------------------- 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: [email protected]
