Skip to content

HDDS-10840. Do not pass owner in keyargs when rewriting a key.#6709

Closed
sodonnel wants to merge 5 commits intoapache:masterfrom
sodonnel:HDDS-10840
Closed

HDDS-10840. Do not pass owner in keyargs when rewriting a key.#6709
sodonnel wants to merge 5 commits intoapache:masterfrom
sodonnel:HDDS-10840

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 is still present when the key is rewritten

@sodonnel sodonnel closed this May 21, 2024
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