Repository navigation
squid: rgw/multisite:multisite secondary local sync race - #72531
Conversation
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)
Tests: https://tracker.ceph.com/issues/80389 Signed-off-by: Saravanan Palanisamy <[email protected]> Co-Authored-By: Claude Sonnet 5 <[email protected]> (cherry picked from commit 5c57e94)
|
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 must be in the same QA batch as #71059 |
|
This PR has been added to wip-anrao15-testing-2026-10-29-0454-squid. |
|
jenkins test docs |
pr testing completed and approved by @ivancich , more deatils : https://tracker.ceph.com/issues/82264. |
We can merge this :) |
@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. |
|
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. |
backport tracker: https://tracker.ceph.com/issues/80864
backport of #71779
parent tracker: https://tracker.ceph.com/issues/80389
this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh