Mohammadhani Fouladgar created RATIS-2853:
---------------------------------------------

             Summary: Expose follower applied indices in DivisionInfo 
                 Key: RATIS-2853
                 URL: https://issues.apache.org/jira/browse/RATIS-2853
             Project: Ratis
          Issue Type: Improvement
          Components: server
            Reporter: Mohammadhani Fouladgar
             Fix For: 3.4.0


RATIS-2311 added {{followerAppliedIndex}} to {{{}AppendEntriesReplyProto{}}}. 
The leader now records it per follower in 
{{{}FollowerInfo.getAppliedIndex(){}}}. However, {{FollowerInfo}} can't be 
reached through the public server API, so applications on top of Ratis can't 
read it.

{{DivisionInfo}} already exposes the other per-follower indices:

{{long[] getFollowerNextIndices();}}
{{long[] getFollowerMatchIndices();}}

This JIRA proposes adding the applied-index version alongside them.

{{long[] getFollowerAppliedIndices();}}

Motivation:
Apache Ozone SCM needs to know how far its Ratis followers are behind in 
applying committed entries. The match index only shows replication. When SCM 
followers lag in apply, OM's block-deletion load keeps growing their backlog 
(HDDS-17075).



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to