Repository navigation
umbrella: rgw/multisite: keep the period id when pulling a period from the master - #73447
Merged
Merged
Conversation
RGWPeriodPuller::pull() fetches a period this zone doesn't have yet from the metadata master, then stores it. Since the configstore refactor in 976889f it gives the pulled period a new random id and resets its epoch to 1 before storing it, a copy of the "create a new period" step of a period commit. Every gateway that pulls a period therefore stores it under its own made-up id. The pull path runs when a zone missed a period push, for example a zone that was down while the master moved. Its metadata sync then walks the period history with that made-up id, can't find the period's mdlog on the master, and never gets past it. test_multi_period_incremental_sync shows it: the zone that was stopped stays on the pulled realm epoch, and its two gateways log two different period ids for that epoch. Store the pulled period as it came, like store_info() did before the refactor. Introduced by 976889f ("RGW/standalone: refactor RGWPeriod with configstore"). Fixes: https://tracker.ceph.com/issues/81758 Signed-off-by: Lumir Sliva <[email protected]> (cherry picked from commit 62c0e5b)
|
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 |
4 of 14 tasks
adamemerson
approved these changes
Nov 10, 2026
Contributor
|
This PR has been added to wip-anrao12-testing-2026-11-11-0619-umbrella. |
Contributor
pr testing completed and approved by @ivancich more details on :https://tracker.ceph.com/issues/83031 |
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.
backport tracker: https://tracker.ceph.com/issues/82613
backport of #72671
parent tracker: https://tracker.ceph.com/issues/81758
this backport was staged manually
Clean cherry-pick of 62c0e5b, no conflicts. Umbrella carries the regression:
976889f (the RGWPeriod configstore refactor) is in umbrella, and its
RGWPeriodPuller::pull()still gives a pulled period a random id and epoch 1before
create_period(). Tentacle and squid still usestore_info()and aren'taffected.
Tested on vstart (mstart, 3 zones, 1 gateway per zone) with
test_multi_period_incremental_sync, 2 runs per variant, comparing the
periods.*objects in each zone's.rgw.rootwith the master'speriod list:the master (1-2 per zone); the test itself stops earlier at the master zone
change, which is #80439 (umbrella backport of rgw: fix period's sync_status during failover/failback #71707 in umbrella: rgw: fix period's sync_status during failover/failback #73448)
made-up period ids each, and every gateway start and realm reload pulls the
same period again (3-4 pulls per gateway), since the real id never lands
locally
exactly the master's period ids, 1 pull per gateway; test_failover_failback
passes 2 of 2 on the same tree
The sync stall from the parent tracker (a zone walking a period under the
made-up id) didn't show in these runs, so the evidence here is the stored
periods and the repeated pulls, not a test failure. The full multisite tests
need #73448 as well.
Checklist