You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Bharat Viswanadham (Jira)" <ji...@apache.org> on 2020/11/25 23:19:00 UTC
[jira] [Created] (RATIS-1180) Expose isLeaderAndReady with Status
Info
Bharat Viswanadham created RATIS-1180:
-----------------------------------------
Summary: Expose isLeaderAndReady 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
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)