HDDS-13545. MutableVolumeSet code cleanup#9755
Conversation
…redundant state maps.
adoroszlai
left a comment
There was a problem hiding this comment.
Thanks @ptlrs for the patch.
.../src/test/java/org/apache/hadoop/ozone/container/common/volume/TestStorageVolumeChecker.java
Outdated
Show resolved
Hide resolved
...-service/src/main/java/org/apache/hadoop/ozone/container/common/volume/MutableVolumeSet.java
Outdated
Show resolved
Hide resolved
...-service/src/main/java/org/apache/hadoop/ozone/container/common/volume/MutableVolumeSet.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Doroszlai, Attila <6454655+adoroszlai@users.noreply.github.com>
…ozone/container/common/volume/TestStorageVolumeChecker.java Co-authored-by: Doroszlai, Attila <6454655+adoroszlai@users.noreply.github.com>
|
Thanks for the review @adoroszlai. I have committed your suggestions. |
adoroszlai
left a comment
There was a problem hiding this comment.
Thanks @ptlrs for updating the patch.
sreejasahithi
left a comment
There was a problem hiding this comment.
Thanks @ptlrs for the patch.
left a minor comment
| // The new volume is in an inconsistent state as the root dir is | ||
| // non-empty but the version file does not exist. Add Volume should | ||
| // return false. |
There was a problem hiding this comment.
I think this comment is outdated now after the changes, so needs to be updated.
There was a problem hiding this comment.
That's why comments should not duplicate statements (assertFalse in this case)... :)
There was a problem hiding this comment.
Let's leave this for follow-up, since it's a test-only change. There can be further cleanup in the test class.
|
Thanks @ptlrs for the patch, @sreejasahithi, @yandrey321 for the review. |
|
Thanks for the reviews @adoroszlai, @sreejasahithi, @yandrey321. |
What changes were proposed in this pull request?
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-13545
How was this patch tested?
CI: https://github.com/ptlrs/ozone/actions/runs/21937724785