Repository navigation
rgw/multisite: keep the period id when pulling a period from the master - #72671
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]>
|
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 PR has been added to main integration testing by anuchaithra started 2026-10-16-04:48. |
pr testing completed and approved by @ivancich , more details in : https://tracker.ceph.com/issues/81819. |
|
This is an automated message by src/script/redmine-upkeep.py. I have resolved the following tracker ticket due to the merge of this PR: No backports are pending for the ticket. If this is incorrect, please update the tracker |
RGWPeriodPuller::pull()fetches a period the zone doesn't have yet from the metadata master and stores it. Since the configstore refactor in 976889f it first gives the pulled period a new random id and resets its epoch to 1, which looks like a copy of the "create a new period" step of a period commit. Every gateway that pulls a period 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, finds no mdlog for it on the master, and stays on that realm epoch for good.
The fix stores the pulled period as it came, as
store_info()did before the refactor. Not in squid or tentacle, so no backport.Tested with
test_multi_period_incremental_sync, where the third zone is down while the master moves and then pulls the latest period:Fixes: https://tracker.ceph.com/issues/81758
Checklist