Repository navigation
rgw: write meta of a MP part to a correct pool - #39934
Merged
Merged
Conversation
Contributor
Author
|
@cbodley I've just modified the code according to your triage and analysis. Could you take a look at the pr? |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
When uploading a multipart part to a non-default storage class, original logic writes the object data to the correct pool for its storage class. But when completing the upload, there's another write op (with a bunch of setxattrs) to the head object targeting the standard pool (because non-multipart uploads write their head objects to the default pool). As a result of this setxattrs op, a redundant zero-sized object is created in a wrong pool. Multipart complete, multipart abort and GC would never try to it clean up. The fix is to make RGWRados::Object::Write::_do_write_meta() learn the difference between multipart and non-multipart head objects and pick the correct placement rule for RGWRados::get_obj_head_ref(). Fixes: http://tracker.ceph.com/issues/49128 Signed-off-by: Jeegn Chen <[email protected]>
Jeegn-Chen
force-pushed
the
wip-tracker-49128
branch
from
May 29, 2021 05:03
ed5236c to
7647823
Compare
Contributor
|
@harishmunjulur has the test finished? would you mind sharing the test result so we can move this PR forward? |
Contributor
Author
|
@harishmunjulur any more feedback? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When uploading a multipart part to a non-default storage class,
original logic writes the object data to the correct pool
for its storage class.
But when completing the upload, there's another write op
(with a bunch of setxattrs) to the head object targeting
the standard pool (because non-multipart uploads
write their head objects to the default pool).
As a result of this setxattrs op, a redundant zero-sized object is
created in a wrong pool. Multipart complete, multipart abort and
GC would never try to it clean up.
The fix is to make RGWRados::Object::Write::_do_write_meta() learn the
difference between multipart and non-multipart head objects and pick the
correct placement rule for RGWRados::get_obj_head_ref().
Fixes: http://tracker.ceph.com/issues/49128
Signed-off-by: Jeegn Chen [email protected]
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume tox