Skip to content

Conversation

@sodonnel
Copy link
Contributor

What changes were proposed in this pull request?

The "owner" field is only set at the OM server side when a new key is created. In the case a key is overwritten, the owner is never retrieved from the keyargs and hence overwriting the owner when overwriting a key is not possible. This is the case, both prior to the atomic key overwrite feature and when the traditional key overwrite where a new version is allocated.

Therefore this change should simply remove the owner details from being passed in the rewrite key and the owner will continue to be inherited as it is now.

What is the link to the Apache JIRA

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

How was this patch tested?

Existing test modified to check the owner before and after are the same.

@sodonnel sodonnel requested a review from adoroszlai May 21, 2024 11:27
@adoroszlai adoroszlai merged commit 3b282c7 into apache:HDDS-10656-atomic-key-overwrite May 21, 2024
@adoroszlai
Copy link
Contributor

Thanks @sodonnel for the patch.

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.

2 participants