JoeCqupt opened a new pull request, #1713: URL: https://github.com/apache/ratis/pull/1713
## What changes were proposed in this pull request? A higher-priority follower can still appear caught up after it goes offline if no new entries are appended. The leader can repeatedly attempt to transfer leadership to that follower and reject client writes while each transfer is pending. Skip followers whose last RPC response is older than the leader's maximum RPC timeout before ranking candidates by priority. This reuses the same check as the leader's quorum check. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/RATIS-2830 ## How was this patch tested? Added `testSkipUnreachableHigherPriorityFollower`. The test stops a caught-up follower after it receives a transfer request and before it can start an election. It verifies that transfer attempts stop after the follower's last RPC response expires, that the original leader accepts a write in the same term, and that the follower can become leader after restarting. -- 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]
