Repository navigation
Conversation
|
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 |
b90cd7a to
b20f169
Compare
|
I think we can also remove |
b20f169 to
a21c406
Compare
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]>
Tests: https://tracker.ceph.com/issues/80389 Signed-off-by: Saravanan Palanisamy <[email protected]> Co-Authored-By: Claude Sonnet 5 <[email protected]>
a21c406 to
5c57e94
Compare
|
This PR has been added to main integration testing by anuchaithra started 2026-09-22-04:10. |
Testing completed and got approval from @ivancich, morr details in https://tracker.ceph.com/issues/80712. |
|
The tracker does not list any backports. If this is incorrect, please update the tracker accordingly. |
RGW keeps a version number on every metadata objects (user, bucket, groups ..). In general this version increases monotonically for every update.
In multisite setup, on secondary cluster,, the version is updated as follow
Since the two number do not come from the same counter, in race conditions between local PUT and remote PUT, lower version from metadata sync can updated in secondary cluster momentarily.
A cache guard introduced by #69748 detected the version going backward and rejected it as stale. This left the cache with a version that no longer matched RADOS. Subsequent retries kept using the same cached value, causing writes to the object to fail for up to 15 minutes and blocking metadata sync.
Fixed by letting secondary cluster independently increase it version counter. It does not use master version anymore.
Now the version number is strictly monotonic, making cache guard's assumption true.
Bug introduced by: ff056da
Fixes: https://tracker.ceph.com/issues/80389
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
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.