Repository navigation
rgw/archive: avoid duplicating objects when syncing from multiple zones - #50841
Conversation
|
this doesn't work yet. not sure what is missing. |
There was a problem hiding this comment.
this code is shared between normal and archive zones, and confuses src_obj (which is the key we want to fetch from the remote) with the original dest_obj before RGWArchiveDataSyncModule::sync_object() added an instance id
a bucket replication policy could cause us to sync objects from a different src_bucket. for archive zone, we'd still want the get_obj_state() call to follow_olh on the object in the dest_bucket that we're writing to
ultimately i think that RGWAsyncFetchRemoteObj, RGWFetchRemoteObjCR, and RGWObjFetchCR should all take the arguments explicitly as:
const rgw_obj& src_obj,
const rgw_obj& dest_obj,
const rgw_obj& stat_dest_obj,
bool stat_follow_olhthis doesn't necessarily need to block your fix, but we should track this issue and fix it later
There was a problem hiding this comment.
thank you for the detailed explanation, @cbodley
There was a problem hiding this comment.
ok yes I overlooked the bucket replication policy case. Your proposal makes sense. will open a tracker and follow up with a pr soon.
|
@smanjara did you have further changes that resolved the bucket marker issue? i don't see them here |
5d762a8 to
7085791
Compare
|
@cbodley Pushed an update. I guess I should have made a separate commit to tell the difference but this is the line that changed: this gives us the missing source bucket marker. |
we could be using sal handle for source obj here but I noticed that you had removed most sal references in your pr f4df0ac |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
Signed-off-by: Shilpa Jagannath <[email protected]>
7085791 to
74014cf
Compare
Fixes https://tracker.ceph.com/issues/59184
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "pacific"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
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 dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windows