-
Notifications
You must be signed in to change notification settings - Fork 588
HDDS-10403. CopyObject should set ETag based on the key content #6251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@kerneltime @myskov Could you help to review this when convenient? Thank you. |
|
@vtutrinov could you also take a look, please? |
|
@ivandika3 thanks for the patch! @myskov LGTM, +1 |
| METRICS.updateCopyKeyMetadataStats(startNanos); | ||
| perf.appendMetaLatencyNanos(metadataLatencyNs); | ||
| writeLen = writeToStreamOutput(streamOutput, body, bufferSize, length); | ||
| eTag = DatatypeConverter.printHexBinary(body.getMessageDigest().digest()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As the eTag var is not used anywhere else, let's move eTag declaration here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the review. Updated. PTAL.
myskov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ivandika3 for updating the patch. LGTM
|
Thanks @ivandika3 for the patch, @myskov, @vtutrinov for the review. |
|
Thank you for the reviews @myskov @vtutrinov and @adoroszlai for the merge. |
What changes were proposed in this pull request?
Currently copyObject does not seem to support eTag based on key's content. It uses a random UUID in CopyObjectResponse.
We need to change this to be the eTag based on the key content instead.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-10403
How was this patch tested?
Unit tests, acceptance test, and manual tests.
Compatibilities
Clean CI run: https://github.com/ivandika3/ozone/actions/runs/8001415597