Skip to content

Conversation

@peterxcli
Copy link
Member

What changes were proposed in this pull request?

What is the link to the Apache JIRA

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

How was this patch tested?

Copy link
Contributor

@adoroszlai adoroszlai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @peterxcli for digging the root cause of this failure.

OMMetadataManager metadataManager = cluster.getOzoneManager().getMetadataManager();
String ozoneKey = metadataManager.getOzoneKey(volumeName, bucketName, keyName);

OmKeyInfo omKeyInfo = metadataManager.getKeyTable(getBucketLayout()).get(ozoneKey);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The part of the change related to getBucketLayout() should not be reverted, because this test uses a different layout:

private BucketLayout getBucketLayout() {
return BucketLayout.DEFAULT;

vs.

// This test inspects RocksDB delete table to check for versioning
// information. This is easier to do with object store keys.
volume.createBucket(bucketName, BucketArgs.newBuilder()
.setVersioning(versioning)
.setBucketLayout(BucketLayout.OBJECT_STORE).build());

To simplify things, maybe we should add a constant referencing OBJECT_STORE, and use it in both createRequiredForVersioningTest and checkExceptedResultForVersioningTest.

Comment on lines 4673 to 4657
assertThat(rangeKVs).isNotEmpty();
assertThat(rangeKVs.size()).isGreaterThan(0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's also keep isNotEmpty().

@peterxcli peterxcli changed the title HDDS-13861. Intermittent failure in testOverWriteKeyWithAndWithOutVersioning [1/2] HDDS-13861. Intermittent failure in testOverWriteKeyWithAndWithOutVersioning [2/2] Nov 7, 2025
Co-authored-by: Doroszlai, Attila <adoroszlai@apache.org>
@peterxcli peterxcli force-pushed the hdds13861-intermittent-failure-in-testOverWriteKeyWithAndWithOutVersioning-take2 branch from f65790c to 995adbd Compare November 7, 2025 15:32
@peterxcli peterxcli requested a review from adoroszlai November 7, 2025 15:51
@rich7420
Copy link
Contributor

rich7420 commented Nov 7, 2025

thanks @peterxcli !

@peterxcli peterxcli merged commit 4ff1e7f into apache:master Nov 7, 2025
29 checks passed
@peterxcli peterxcli deleted the hdds13861-intermittent-failure-in-testOverWriteKeyWithAndWithOutVersioning-take2 branch November 7, 2025 17:10
@peterxcli
Copy link
Member Author

Thanks @adoroszlai @rich7420 for reviewing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants