adoroszlai opened a new pull request, #11299:
URL: https://github.com/apache/ozone/pull/11299
## What changes were proposed in this pull request?
Fix intermittent but frequent (~67%) failure in
`TestOzoneManagerHASnapshot#testSnapshotDiffWhenOmLeaderRestart`:
```
Tests run: 8, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 63.52 s <<<
FAILURE! -- in org.apache.hadoop.ozone.om.snapshot.TestOzoneManagerHASnapshot
org.apache.hadoop.ozone.om.snapshot.TestOzoneManagerHASnapshot.testSnapshotDiffWhenOmLeaderRestart
-- Time elapsed: 6.260 s <<< FAILURE!
org.opentest4j.AssertionFailedError: expected: <DONE> but was: <IN_PROGRESS>
...
at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1145)
at
org.apache.hadoop.ozone.om.snapshot.TestOzoneManagerHASnapshot.testSnapshotDiffWhenOmLeaderRestart(TestOzoneManagerHASnapshot.java:142)
```
With Ratis 3.3.1 the test passes only if leader has changed after restart,
but fails when `oldLeader == newLeader`.
It started failing when Ratis was upgraded from 3.2.1 to 3.3.1. Previously
the test passed 100%, but only because it never hit this branch.
https://issues.apache.org/jira/browse/HDDS-16550
## How was this patch tested?
100/100 runs passed:
https://github.com/adoroszlai/ozone/actions/runs/35715359385
Regular CI (in progress):
https://github.com/adoroszlai/ozone/actions/runs/35715727632
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]