slfan1989 opened a new pull request, #1625:
URL: https://github.com/apache/ratis/pull/1625

   
   ## What changes were proposed in this pull request?
   
   Fix intermittent failures in the LogAppender purge tests caused by 
concurrent updates to the follower's `nextIndex`.
   
   Previously, the tests modified the follower state of a running LogAppender. 
   
   Background replication could update `nextIndex` between preparing the 
request and checking the result, causing assertions to fail.
   
   This patch uses an unstarted LogAppender with independent follower state for 
request construction and validation. 
   
   It also controls heartbeat timing so the tests consistently exercise data 
append requests. 
   
   The existing assertions are preserved.
   
   ## What is the link to the Apache JIRA
   
   RATIS-2727. LogAppender purge tests may fail due to concurrent nextIndex 
updates.
   
   ## How was this patch tested?
   
   https://github.com/slfan1989/ratis/actions/runs/36955632816


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