HDDS-15709. Replace random name suffix with uniqueObjectName#10773
Merged
Conversation
…s to avoid intermittent BUCKET_ALREADY_EXISTS Replaced RandomStringUtils.secure().nextNumeric(...) with OzoneTestBase.uniqueObjectName(...) for Ozone object names (volume/bucket/key/snapshot) in integration tests. Identity names (user/admin/owner), loop-indexed names, and nextNumeric(32) usages are left unchanged.
sarvekshayr
reviewed
Jul 15, 2026
sarvekshayr
left a comment
Contributor
There was a problem hiding this comment.
Thanks @prathmesh12-coder for working on this.
Please resolve the merge conflicts in this PR.
# Conflicts: # hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestAddRemoveOzoneManager.java
sarvekshayr
reviewed
Jul 15, 2026
sarvekshayr
left a comment
Contributor
There was a problem hiding this comment.
Please fix the CI checkstyle failure.
| String volumeName = "volume" + RandomStringUtils.secure().nextNumeric(5); | ||
| String bucketName = "volume" + RandomStringUtils.secure().nextNumeric(5); | ||
| String volumeName = uniqueObjectName("volume"); | ||
| String bucketName = uniqueObjectName("volume"); |
Contributor
There was a problem hiding this comment.
Incorrect bucket prefix -
Suggested change
| String bucketName = uniqueObjectName("volume"); | |
| String bucketName = uniqueObjectName("bucket"); |
Contributor
Author
There was a problem hiding this comment.
Thanks @sarvekshayr for review !!
I left this as it was before, will change the similar occurrences. volName -> "vol.." , bucName -> "buc.." etc.
cc : @adoroszlai
Contributor
Author
There was a problem hiding this comment.
done..bucket prefix fixed in both files.
| String volumeName = "volume" + RandomStringUtils.secure().nextNumeric(5); | ||
| String bucketName = "volume" + RandomStringUtils.secure().nextNumeric(5); | ||
| String volumeName = uniqueObjectName("volume"); | ||
| String bucketName = uniqueObjectName("volume"); |
Contributor
There was a problem hiding this comment.
Incorrect bucket prefix -
Suggested change
| String bucketName = uniqueObjectName("volume"); | |
| String bucketName = uniqueObjectName("bucket"); |
adoroszlai
approved these changes
Jul 15, 2026
Contributor
|
Thanks @prathmesh12-coder for the patch, @sarvekshayr for the review. |
errose28
added a commit
to errose28/ozone
that referenced
this pull request
Jul 16, 2026
* master: (53 commits) HDDS-15876. Remove ozone-csi (apache#10780) HDDS-15508. Add 2.2.0 to compatibility/upgrade test (apache#10782) HDDS-15867. [JDK25] Bump byte-buddy to 1.18.11 (apache#10776) HDDS-15809. Validate x-amz-copy-source-range on UploadPartCopy (apache#10711). HDDS-15678. OFS isDirectory/isFile should not trigger pipeline refresh or return block locations (apache#10741) HDDS-15171. Add available space check on follower during bootstrap. (apache#10185) HDDS-14043. Fix ls -e UnsupportedOperationException on ofs/o3fs (apache#10209) HDDS-15709. Replace random name suffix with uniqueObjectName (apache#10773) HDDS-15849. Force channel shutdown in XceiverClientGrpc.close (apache#10747) HDDS-15765. Fail fast when --node-id is omitted for OM compact/defrag on an HA cluster (apache#10699) HDDS-14989. Delay follower SCM DN server start until Ratis log catch-up. (apache#10617). HDDS-15456. Add SCM DB lookup and identify orphan(wrt SCM) and deleted-but-present containers (apache#10547) HDDS-15812. Rename test utils for naming convention (apache#10766) HDDS-15600. Fix ListObjects response for encoding-type and empty delimiter (apache#10586). HDDS-15656. Fix non-atomic data size accumulation in ContainerBalancer move callback (apache#10708) HDDS-15667. `containerbalancer status`: show stop reason and iteration details after stop (apache#10681) HDDS-15823. Fix flaky TestFailureHandlingByClient#testContainerExclusionWithClosedContainerException (apache#10721) HDDS-15837. Add health-aware container ID listing in SCM (apache#10736) HDDS-15851. Return 403 for expired or out-of-range pre-signed S3 URLs (apache#10749) HDDS-15836. Add Archiver.appendFile for incremental TAR writes (apache#10735) ... Conflicts: hadoop-hdds/server-scm/src/test/java/org/apache/hadoop/hdds/scm/node/TestSCMNodeManager.java hadoop-hdds/server-scm/src/test/java/org/apache/hadoop/hdds/scm/node/TestSCMNodeMetrics.java hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/OmKeyInfo.java hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/RepeatedOmKeyInfo.java hadoop-ozone/dist/src/main/compose/upgrade/test.sh hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/hdds/upgrade/HddsUpgradeTestUtils.java hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/hdds/upgrade/TestDNDataDistributionFinalization.java hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/hdds/upgrade/TestHDDSUpgrade.java hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/hdds/upgrade/TestScmDataDistributionFinalization.java hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/hdds/upgrade/TestScmHAFinalization.java hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/service/TestBlockDeletionService.java hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/OMClientRequest.java
errose28
added a commit
to errose28/ozone
that referenced
this pull request
Jul 16, 2026
* HDDS-14496-zdu: (56 commits) HDDS-15848. Add new upgrade action annotations for component versions (apache#10744) HDDS-15876. Remove ozone-csi (apache#10780) HDDS-14825. Add Grafana Dashboard and Metrics for ZDU (apache#10602) HDDS-15508. Add 2.2.0 to compatibility/upgrade test (apache#10782) HDDS-15867. [JDK25] Bump byte-buddy to 1.18.11 (apache#10776) HDDS-15809. Validate x-amz-copy-source-range on UploadPartCopy (apache#10711). HDDS-15678. OFS isDirectory/isFile should not trigger pipeline refresh or return block locations (apache#10741) HDDS-15171. Add available space check on follower during bootstrap. (apache#10185) HDDS-14043. Fix ls -e UnsupportedOperationException on ofs/o3fs (apache#10209) HDDS-15709. Replace random name suffix with uniqueObjectName (apache#10773) HDDS-15677. Update client side version checks to use `isSupportedBy`. (apache#10611) HDDS-15849. Force channel shutdown in XceiverClientGrpc.close (apache#10747) HDDS-15765. Fail fast when --node-id is omitted for OM compact/defrag on an HA cluster (apache#10699) HDDS-14989. Delay follower SCM DN server start until Ratis log catch-up. (apache#10617). HDDS-15456. Add SCM DB lookup and identify orphan(wrt SCM) and deleted-but-present containers (apache#10547) HDDS-15812. Rename test utils for naming convention (apache#10766) HDDS-15600. Fix ListObjects response for encoding-type and empty delimiter (apache#10586). HDDS-15656. Fix non-atomic data size accumulation in ContainerBalancer move callback (apache#10708) HDDS-15667. `containerbalancer status`: show stop reason and iteration details after stop (apache#10681) HDDS-15823. Fix flaky TestFailureHandlingByClient#testContainerExclusionWithClosedContainerException (apache#10721) ... Conflicts: hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestOzoneManagerPrepare.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
we have intermittent
BUCKET_ALREADY_EXISTSerror during integration tests due toRandomStringUtils.secure().nextNumeric(...)Replaced
RandomStringUtils.secure().nextNumeric(...)withOzoneTestBase.uniqueObjectName(...)for Ozone object names (volume/bucket/key/snapshot) in integration tests.Identity names (user/admin/owner), loop-indexed names, and
nextNumeric(32)usages left unchanged.What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-15709
How was this patch tested?
RandomStringUtils.secure().nextNumeric(...)inhadoop-ozone/integration-test/with: