Elia-Renzoni opened a new pull request, #1586:
URL: https://github.com/apache/ratis/pull/1586

   ## What changes were proposed in this pull request?
   This PR makes the leadership transfer check in 
TransferLeadership#isFollowerUpToDate stricter by also verifying that the gap 
between the target follower's matchIndex (replicated log) and its appliedIndex 
(state machine apply progress) is within an acceptable threshold, in addition 
to the existing matchIndex up-to-date check
   
   ## What is the link to the Apache JIRA
   
https://issues.apache.org/jira/browse/RATIS-2311?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel
   
   ## How was this patch tested?
   Added ```testRiskyLeadershipTransfer``` to the abstract 
```LeaderElectionTests``` class, alongside the existing 
```testTransferLeader``` and ```testTransferLeaderTimeout``` tests


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to