adoroszlai opened a new pull request, #1001:
URL: https://github.com/apache/ratis/pull/1001
## What changes were proposed in this pull request?
Attempt to fix intermittent failure in `TestRaftStorage#testSnapshotCleanup`:
```
org.apache.ratis.server.storage.TestRaftStorage.testSnapshotCleanup Time
elapsed: 0.022 s <<< FAILURE!
java.lang.AssertionError
...
at
org.apache.ratis.server.storage.TestRaftStorage.testSnapshotCleanup(TestRaftStorage.java:256)
```
I'm guessing the problem is caused by duplicate random-generated term/index
value, which can result in fewer than 7 expected files.
Also some additional assertions and cleanup.
https://issues.apache.org/jira/browse/RATIS-1986
## How was this patch tested?
Passed in 10x50 runs:
https://github.com/adoroszlai/ratis/actions/runs/7371067861
--
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]