Repository navigation
rgw/multisite: pass the data sync status to the shard control coroutine - #72776
Merged
smanjara merged 1 commit intoNov 12, 2026
Merged
Conversation
RGWDataSyncShardControlCR takes the data sync status by reference and never stores it: the member of the same name stays default-constructed, and that empty copy is what RGWDataSyncShardCR and, through it, the full sync coroutines get. timestamp_for_bucket_shard() finds no marker in it and returns a zero timestamp for every bucket shard in full sync, so a full sync obligation that fails is never written to the error repo (RGWDataSyncSingleEntryCR only parks obligations with a timestamp), and the error repo writes RGWDataFullSyncSingleEntryCR makes for the shards after a failed one are no-ops (rgw::error_repo::write only sets the key when the new timestamp is greater than the stored one, which is 0 for a missing key). Store the status, so those entries carry the datalog shard's last_update as intended. A failed full sync obligation is then retried by the incremental sync's error repo pass, like any other failed obligation. The member was added without being initialised by 1985a16. Fixes: https://tracker.ceph.com/issues/81830 Signed-off-by: Lumir Sliva <[email protected]>
|
Thank you for your contribution. Since you are not yet a member of the Ceph organization with write permissions on ceph/ceph.git, our CI will not automatically run. Any member of the Ceph organization may label this PR |
This was referenced Oct 16, 2026
smanjara
approved these changes
Oct 29, 2026
Contributor
|
This PR has been added to wip-anrao4-testing-2026-11-02-0647-main. |
Contributor
pr testing completed and approved by @ivancich more details on :https://tracker.ceph.com/issues/82521 |
This was referenced Nov 12, 2026
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.
Summary
When a bucket's full sync fails during a data sync full sync, the bucket is dropped for good: failed full sync obligations never reach the error repo. Since 1985a16 (v18.0.0), so reef, squid, tentacle and main.
Problem
RGWDataSyncShardControlCRtakes the data sync status in its constructor and has a member of the same name, but never initialises it, soRGWDataSyncShardCRand the full sync coroutines get an empty copy.timestamp_for_bucket_shard()finds no marker in it and returns 0 for every bucket shard.RGWDataSyncSingleEntryCRonly parks obligations with a timestamp, and the "Write N to error repo" writes inRGWDataFullSyncSingleEntryCRare no-ops (rgw::error_repo::writeis acmp_set_valsGT against 0).bucket sync run.Fix
Store the status. Full sync obligations then carry their datalog shard's
last_update, as 1985a16 intended, and a failed one is retried by the incremental sync's error repo pass like any other failed obligation.Test
Two zones on one box:
data sync initon the secondary, every object sync failing withrgw_sync_data_inject_err_probability=1until the data sync shards are incremental, then cleared over the admin socket.No multisite suite test: the suite has no fault injection for a full sync failure. The reproducer script is on the tracker.
Fixes: https://tracker.ceph.com/issues/81830
Checklist