HDDS-9607. Overwrite file by multipart upload, saving wrong ReplicationConfig in KeyInfo#5534
Conversation
…onConfig in KeyInfo
|
@kerneltime PTAL. Thanks. |
|
Thank you @guohao-rosicky I will take a look. Thank you for catching this. |
|
@SaketaChalamchala @tanvipenumudy @xBis7 can you please take a look. |
|
@guohao-rosicky Thanks for the patch. Can you add a comment with a manual test case before and after the change? Also, can we verify it's consistent with FSO as well? When saying test case, I mean show what the issue is before the change and that it's fixed after the change. |
sure. I've updated. Thanks @xBis7 PTAL. BTW. FSO is extends S3MultipartUploadCompleteRequest, is well. |
xBis7
left a comment
There was a problem hiding this comment.
@guohao-rosicky Thanks for the fix and for updating the comment. Changes LGTM!
ChenSammi
left a comment
There was a problem hiding this comment.
The change looks good, and the manual test comments are very clear.
Thanks @guohao-rosicky .
…onConfig in KeyInfo (apache#5534)
…ng ReplicationConfig in KeyInfo (apache#5534) (cherry picked from commit 585a789) Change-Id: I7ae0991740b432c38c9107a805f63523034e1936
What changes were proposed in this pull request?
When uploading a file with the same name using a slice overwrite, if the number of previous copies is not the same as the current one, the meta information is updated incorrectly.
Example:
Ais uploaded the first time it is ratis 3 factorAis uploaded using multipart upload it is ec-3-2-512kAfter use this PR, overwrite this file, replicationconfig is ec-3-2-512k
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-9607