adoroszlai opened a new pull request, #9761:
URL: https://github.com/apache/ozone/pull/9761
## What changes were proposed in this pull request?
`TestDefaultContainerChoosingPolicy` and `TestDefaultVolumeChoosingPolicy`
started failing with:
```
DiskOutOfSpaceException: No storage locations configured
at
org.apache.hadoop.ozone.container.common.volume.MutableVolumeSet.initializeVolumeSet(MutableVolumeSet.java:185)
at
org.apache.hadoop.ozone.container.common.volume.MutableVolumeSet.<init>(MutableVolumeSet.java:121)
at
org.apache.hadoop.ozone.container.common.volume.MutableVolumeSet.<init>(MutableVolumeSet.java:83)
at
org.apache.hadoop.ozone.container.diskbalancer.TestDefaultVolumeChoosingPolicy.setupVolumeSet(TestDefaultVolumeChoosingPolicy.java:241)
at
org.apache.hadoop.ozone.container.diskbalancer.TestDefaultVolumeChoosingPolicy.testVolumeChoosingPolicy(TestDefaultVolumeChoosingPolicy.java:264)
```
and
```
DiskOutOfSpaceException: No storage locations configured
at
org.apache.hadoop.ozone.container.common.volume.MutableVolumeSet.initializeVolumeSet(MutableVolumeSet.java:185)
at
org.apache.hadoop.ozone.container.common.volume.MutableVolumeSet.<init>(MutableVolumeSet.java:121)
at
org.apache.hadoop.ozone.container.common.volume.MutableVolumeSet.<init>(MutableVolumeSet.java:83)
at
org.apache.hadoop.ozone.container.diskbalancer.TestDefaultContainerChoosingPolicy.setupVolumesAndContainer(TestDefaultContainerChoosingPolicy.java:111)
at
org.apache.hadoop.ozone.container.diskbalancer.TestDefaultContainerChoosingPolicy.setup(TestDefaultContainerChoosingPolicy.java:89)
```
Volume is created as "failed" due to:
```
ERROR volume.MutableVolumeSet
(MutableVolumeSet.java:initializeVolumeSet(178)) - Failed to parse the storage
location:
file:///home/runner/work/ozone/ozone/hadoop-hdds/container-service/target/tmp/dfs/data
org.apache.hadoop.ozone.common.InconsistentStorageStateException: Mismatched
DatanodeUUIDs. Version File :
/home/runner/work/ozone/ozone/hadoop-hdds/container-service/target/tmp/dfs/data/hdds/VERSION
has datanodeUuid: 4146cf07-62a5-433e-ba67-7a8c783595b0 and Datanode has
datanodeUuid: 696ae847-44f9-4f67-8128-69107ea124da
```
This is caused by version file leftover from
`TestDatanodeUpgradeToSchemaV3`. This PR changes all three tests to use
JUnit's temp dir instead of `tmp/dfs/data`.
Test classes were run in different order previously. It started failing
after GitHub runner update from
[20260201.15](https://github.com/actions/runner-images/blob/ubuntu24/20260201.15/images/ubuntu/Ubuntu2404-Readme.md)
to
[20260209.23](https://github.com/actions/runner-images/blob/ubuntu24/20260209.23/images/ubuntu/Ubuntu2404-Readme.md).
https://issues.apache.org/jira/browse/HDDS-14632
## How was this patch tested?
```
mvn -am -pl :hdds-container-service clean test \
-Dtest='TestDatanodeUpgradeToSchemaV3,TestDefaultContainerChoosingPolicy,TestDefaultVolumeChoosingPolicy'
```
--
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]