[
https://issues.apache.org/jira/browse/RATIS-1180?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Bharat Viswanadham updated RATIS-1180:
--------------------------------------
Summary: Expose RaftServer status with Status Info (was: Expose
isLeaderAndReady with Status Info )
> Expose RaftServer status with Status Info
> ------------------------------------------
>
> Key: RATIS-1180
> URL: https://issues.apache.org/jira/browse/RATIS-1180
> Project: Ratis
> Issue Type: Bug
> Reporter: Bharat Viswanadham
> Assignee: Bharat Viswanadham
> Priority: Major
>
> 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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)