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

   ## What changes were proposed in this pull request?
   
   The LogAppender purge tests obtain the leader separately during setup and 
verification. 
   
   If leadership changes, they may purge one server's log but verify another 
server's log, causing a spurious assertion failure.
   
   This patch uses the same server for purge and verification and checks that 
it remains the leader in the same term. 
   
   If leadership changes, the test retries with freshly prepared state, up to 
three attempts. 
   
   Assertion failures while leadership remains unchanged still fail the test.
   
   ## What is the link to the Apache JIRA
   
   RATIS-2723. LogAppender purge tests may fail after a leader change.
   
   ## How was this patch tested?
   
   https://github.com/slfan1989/ratis/actions/runs/36845521674


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