Skip to content

squid: rgw/multisite:multisite secondary local sync race - #72531

Merged
batrick merged 2 commits into
ceph:squidfrom
SaravananPalanisamyRWTH:wip-80864-squid
Nov 16, 2026
Merged

batrick merged 2 commits into
ceph:squidfrom
SaravananPalanisamyRWTH:wip-80864-squid

Conversation

@SaravananPalanisamyRWTH

Copy link
Copy Markdown

saravanan-hetzner and others added 2 commits October 9, 2026 08:38
RGWMetadataManager::put() decode incoming "ver" field "write_version"
causing sync PUT to use cls_version_set() to set master's ver into
local.

On a secondary with race condition, cls_version_set() can overwrite
a "ver" with lower number.

cache guard introduced in #77554, can reject the lower version as stale,
leaving the cache ahead of RADOS and cause repeated -ECANCELLED (#80389).

keeps "write_version" unchanged allowing sync PUT to use
cls_version_inc(), ensure "ver" in secondary/local clusters strictly
monotonic and cache protection from #77554 continues to work correctly

This also affects `radosgw-admin metadata put` and PUT /admin/metadata/.../key.
When metadata is dumped as JSON using these methods, RGW ingores the
ver in the JSON field and directly increments the local version instead.

Fixes: https://tracker.ceph.com/issues/80389

Signed-off-by: Saravanan Palanisamy <[email protected]>
(cherry picked from commit ab5fbe2)
@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown

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 ci-approved to allow Jenkins CI jobs to run.

@github-actions github-actions Bot added this to the squid milestone Oct 9, 2026
github-actions[bot]

This comment was marked as outdated.

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Oct 9, 2026
@adamemerson adamemerson added ci-approved and removed needs-ci-approval releng-audit-fail Release engineering: failed backport verification audit. labels Oct 27, 2026
@github-actions github-actions Bot added the releng-audit-pass Release engineering: passed backport verification audit. label Oct 27, 2026
@adamemerson

Copy link
Copy Markdown
Contributor

This PR must be in the same QA batch as #71059

@anrao19

anrao19 commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-anrao15-testing-2026-10-29-0454-squid.

@batrick

batrick commented Nov 3, 2026

Copy link
Copy Markdown
Member

jenkins test docs

@anrao19

anrao19 commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-anrao15-testing-2026-10-29-0454-squid.

pr testing completed and approved by @ivancich , more deatils : https://tracker.ceph.com/issues/82264.
@SaravananPalanisamyRWTH, if no further testing is needed then this can be merged

@SaravananPalanisamyRWTH

Copy link
Copy Markdown
Author

This PR has been added to wip-anrao15-testing-2026-10-29-0454-squid.

pr testing completed and approved by @ivancich , more deatils : https://tracker.ceph.com/issues/82264.

@SaravananPalanisamyRWTH, if no further testing is needed then this can be merged

We can merge this :)

@adamemerson adamemerson added the needs-merge QA-approved, awaiting merge window label Nov 5, 2026
@batrick

batrick commented Nov 6, 2026

Copy link
Copy Markdown
Member

This PR must be in the same QA batch as #71059

@adamemerson this still has not been tested with #71059. So why is this ready for merge?

@adamemerson adamemerson removed ready-to-merge needs-merge QA-approved, awaiting merge window labels Nov 6, 2026
@adamemerson

Copy link
Copy Markdown
Contributor

@yuriw Could you please include this in a QA batch along with #71059

@adamemerson

Copy link
Copy Markdown
Contributor

This PR must be in the same QA batch as #71059

@adamemerson this still has not been tested with #71059. So why is this ready for merge?

I thought the dependency ran only one way and this could go in with the the other but not vice-versa.

@anrao19

anrao19 commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-anrao12-testing-2026-11-04-1104-squid.

@anrao19

anrao19 commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-anrao12-testing-2026-11-04-1104-squid.

pr testing completed and approved by @ivancich , More details on : https://tracker.ceph.com/issues/82661.
@SaravananPalanisamyRWTH, if no further testing is needed then this can be merged

@batrick
batrick merged commit 41bd344 into ceph:squid Nov 16, 2026
37 of 38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-approved ready-to-merge releng-audit-pass Release engineering: passed backport verification audit. rgw TESTED tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants