Skip to content

rgw/multisite: Clone the source zone's mdlog during full_sync(). - #70829

Open
smanjara wants to merge 1 commit into
ceph:mainfrom
smanjara:wip-rgw-mdlog-failover
Open

smanjara wants to merge 1 commit into
ceph:mainfrom
smanjara:wip-rgw-mdlog-failover

Conversation

@smanjara

@smanjara smanjara commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

fixes https://tracker.ceph.com/issues/55770

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. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@smanjara
smanjara requested a balanced review from Copilot and removed request for Copilot August 4, 2026 16:20
@github-actions github-actions Bot added the rgw label Aug 4, 2026
@smanjara

smanjara commented Aug 4, 2026

Copy link
Copy Markdown
Contributor Author

replaces #51829

@smanjara
smanjara marked this pull request as ready for review August 4, 2026 16:23
@smanjara
smanjara requested a review from a team as a code owner August 4, 2026 16:23
@smanjara
smanjara requested review from cbodley and a balanced review from Copilot and removed request for Copilot August 4, 2026 16:23
@cbodley

cbodley commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

following up from #51829 (comment)

failover may happen multiple times, generating a new period each time. each period has its own separate mdlog. incremental metadata sync will loop over periods in order and process the mdlogs for each until it's caught up with the current period. so the metadata master zone is expected to serve those mdlogs for all periods that its peers are still referencing

this pr calls RGWCloneMetaLogCoroutine for the current period, but doesn't try to clone the logs for any earlier periods. i think we still need to cover that part, and build test cases that exercise it

to propose a test case:

  1. start with three zones A, B, C with A as metadata master
  2. let C start syncing until it's on incremental, then pause sync (either by stopping its radosgws, or restarting with rgw_run_sync_thread=false). so zone C's incremental sync will remain stuck on this first period
  3. create 10 buckets on zone A, let them replicate to zone B until caught up
  4. fail over from metadata master zone A to B
  5. create 10 new buckets on zone B
  6. add new zone D to the zonegroup and let it full sync from zone B. it should also clone the mdlogs that zone C will still need
  7. fail over from metadata master zone B to D
  8. reenable sync on zone C and restart its radosgws
  9. verify that C replicated all 10 buckets created on zone A (from first period) and all 10 buckets created on zone B (from second period)

in metadata incremental sync, RGWCloneMetaLogCoroutine copies mdlog
entries from the source zone, so that it can serve those entries to
other zones after a failover.

Clone the source's current mdlog period and and any earlier periods that exist,
during full sync so when a new zone is promoted to master, it can serve those
entries to other zones that are behind on incremental sync.

Signed-off-by: Shilpa Jagannath <[email protected]>
@smanjara
smanjara force-pushed the wip-rgw-mdlog-failover branch from 9c9fc0a to 1dd519c Compare August 4, 2026 18:59
@smanjara
smanjara requested a balanced review from Copilot and removed request for Copilot August 4, 2026 18:59
@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days.
If you are a maintainer or core committer, please follow-up on this pull request to identify what steps should be taken by the author to move this proposed change forward.
If you are the author of this pull request, thank you for your proposed contribution. If you believe this change is still appropriate, please ensure that any feedback has been addressed and ask for a code review.

@github-actions github-actions Bot added the stale label Oct 3, 2026
@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown

This pull request has been automatically closed because there has been no activity for 90 days. Please feel free to reopen this pull request (or open a new one) if the proposed change is still appropriate. Thank you for your contribution!

@github-actions github-actions Bot closed this Nov 2, 2026
@smanjara smanjara reopened this Nov 2, 2026
@github-actions github-actions Bot removed the stale label Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants