Skip to content

HDDS-17850. Fix duplicate directory object ID in TestOmDBInsightEndPoint legacy bucket test data - #12082

Open
ArafatKhan2198 wants to merge 2 commits into
apache:masterfrom
ArafatKhan2198:HDDS-17850
Open

ArafatKhan2198 wants to merge 2 commits into
apache:masterfrom
ArafatKhan2198:HDDS-17850

Conversation

@ArafatKhan2198

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

In TestOmDBInsightEndPoint, the Legacy bucket test data wrote dir7 (path dir4/dir7/) with the name and object ID of dir4 (DIR_FOUR_OBJECT_ID, 21). As a result, two different directories shared the same object ID.

This PR gives dir7 its own name (DIR_SEVEN) and a new object ID constant, DIR_SEVEN_OBJECT_ID = 42L. IDs 20-41 are already in use, so 42 is the next free one.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-17850

How was this patch tested?

Ran TestOmDBInsightEndPoint locally. All 40 tests pass with no changes to expected values. Checkstyle is clean.

@github-actions github-actions Bot added the recon label Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants