adoroszlai opened a new pull request, #4783:
URL: https://github.com/apache/ozone/pull/4783
## What changes were proposed in this pull request?
Fix intermittent failure in `TestContainerPersistence`:
```
StorageContainerException: Container creation failed because ContainerFile
already exists
at
org.apache.hadoop.ozone.container.keyvalue.KeyValueContainer.create(KeyValueContainer.java:191)
at
org.apache.hadoop.ozone.container.common.impl.TestContainerPersistence.addContainer(TestContainerPersistence.java:200)
at
org.apache.hadoop.ozone.container.common.impl.TestContainerPersistence.testGetContainerReports(TestContainerPersistence.java:311)
```
Since "test container ID" was simply current time, next container could have
the same ID.
https://issues.apache.org/jira/browse/HDDS-7457
## How was this patch tested?
10x100 repetitions:
https://github.com/adoroszlai/hadoop-ozone/actions/runs/5097065042
Regular CI:
https://github.com/adoroszlai/hadoop-ozone/actions/runs/5097300579
--
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]