slfan1989 opened a new pull request, #1661: URL: https://github.com/apache/ratis/pull/1661
## What changes were proposed in this pull request? Fix flaky lease assertions in `testLeaderLease` and `testLeaderLeaseDuringReconfiguration`. A completed write does not guarantee that the leader lease is still valid when the assertion runs. Replace the immediate assertions with bounded retries to tolerate transient scheduling and communication delays. Also correct the expected and actual argument order in `assertLeaderLease`. The existing timeout configuration and lease-expiry checks remain unchanged. ## What is the link to the Apache JIRA RATIS-2777. Fix flaky leader lease tests Please replace this section with the link to the Apache JIRA) ## How was this patch tested? > Manual tests Passed 31 tests: - All 27 tests in `TestLeaderElectionWithGrpc`. - Both lease tests in `TestLeaderElectionWithNetty`. - Both lease tests in `TestLeaderElectionWithSimulatedRpc`. -- 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]
