[ 
https://issues.apache.org/jira/browse/RATIS-2311?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tsz-wo Sze resolved RATIS-2311.
-------------------------------
    Fix Version/s: 3.4.0
       Resolution: Fixed

The pull request is now merged.  Thanks, [~elialovesgolang]!

Thanks also [~ivanandika] for filing this issue!

> Allow TransferLeadership#isFollowerUpToDate to wait for appliedIndex
> --------------------------------------------------------------------
>
>                 Key: RATIS-2311
>                 URL: https://issues.apache.org/jira/browse/RATIS-2311
>             Project: Ratis
>          Issue Type: Improvement
>          Components: Leader
>            Reporter: Ivan Andika
>            Assignee: Elia Renzoni
>            Priority: Major
>             Fix For: 3.4.0
>
>          Time Spent: 1h 40m
>  Remaining Estimate: 0h
>
> Currently TransferLeadership#isFollowerUpToDate only waits for the up-to-date 
> matchIndex before triggering election on the target Ratis server.
> However, if the target Ratis server appliedIndex is way below the matchIndex, 
> once the Ratis server is promoted to a leader, it might take a while for it 
> to catch up to the current appliedIndex and acknowlegding the requests. This 
> can have a noticeable effect on the latency and throughput of the Raft group.
> We might make the transfer leadership check to be more strict by ensuring 
> that leader and follower appliedIndex gap is within a certain acceptable 
> threshold (e.g 10,000) so that the leader catch up would be less noticeable.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to