Skip to content

Conversation

@adoroszlai
Copy link
Contributor

What changes were proposed in this pull request?

Add assertions about OmKeyInfo and OzoneKey attributes for tests covering rewrite.

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

How was this patch tested?

CI:
https://github.com/adoroszlai/ozone/actions/runs/9448431396

@adoroszlai adoroszlai self-assigned this Jun 10, 2024
Copy link
Contributor

@tanvipenumudy tanvipenumudy left a comment

Choose a reason for hiding this comment

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

Thank you @adoroszlai for the patch, LGTM.

void overwriteAfterRewrite(BucketLayout layout) throws IOException {
OzoneBucket bucket = createBucket(layout);
OzoneKeyDetails keyDetails = createTestKey(bucket);
OmKeyArgs keyArgs = toOmKeyArgs(keyDetails);
Copy link
Contributor

Choose a reason for hiding this comment

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

NIT: I think we can remove this line since it is not being used.

Suggested change
OmKeyArgs keyArgs = toOmKeyArgs(keyDetails);

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, removed leftover variable.

@adoroszlai adoroszlai requested a review from sodonnel June 11, 2024 08:53
Copy link
Contributor

@sodonnel sodonnel left a comment

Choose a reason for hiding this comment

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

LGTM

@adoroszlai adoroszlai merged commit 3ec065d into apache:HDDS-10656-atomic-key-overwrite Jun 11, 2024
@adoroszlai adoroszlai deleted the HDDS-10843 branch June 11, 2024 18:30
@adoroszlai
Copy link
Contributor Author

Thanks @sodonnel, @tanvipenumudy for the review.

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