Skip to content

rgw/multisite: 'bucket sync run' command during full sync does not take a bucket-wide lock - #67616

Merged
anrao19 merged 2 commits into
ceph:mainfrom
smanjara:wip-bucket-sync-run
Apr 20, 2026
Merged

anrao19 merged 2 commits into
ceph:mainfrom
smanjara:wip-bucket-sync-run

Conversation

@smanjara

@smanjara smanjara commented Mar 3, 2026

Copy link
Copy Markdown
Contributor

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 x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@github-actions github-actions Bot added the rgw label Mar 3, 2026
@smanjara
smanjara force-pushed the wip-bucket-sync-run branch from d6a7d3a to d552874 Compare March 3, 2026 06:17
@smanjara
smanjara marked this pull request as ready for review March 6, 2026 17:49
@smanjara
smanjara requested a review from a team as a code owner March 6, 2026 17:49
@smanjara
smanjara requested a review from cbodley March 6, 2026 17:49
@smanjara

smanjara commented Mar 6, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@smanjara
smanjara force-pushed the wip-bucket-sync-run branch from d552874 to 4891555 Compare March 6, 2026 19:29
@github-actions github-actions Bot added the tests label Mar 6, 2026

@cbodley cbodley left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Comment thread src/rgw/driver/rados/rgw_data_sync.cc Resolved
Comment thread src/rgw/driver/rados/rgw_data_sync.cc Resolved
…c may

fail to acquire bucket-wide lease. allow the command to run without a lock.
however, the sync process and the command may race to update status obj.
if the sync process does win the race, we must treat that as forward progress
and retry -ECANCELED in ShardCR(), thus resuming from the updated marker.

Signed-off-by: Shilpa Jagannath <[email protected]>
@smanjara
smanjara force-pushed the wip-bucket-sync-run branch 2 times, most recently from 9e10ed0 to a5a9c98 Compare March 11, 2026 17:53
Comment thread src/rgw/driver/rados/rgw_data_sync.cc Resolved
@anrao19

anrao19 commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

FYI, pr testing is in progress...
Tracker created for same is : https://tracker.ceph.com/issues/75780

@anrao19

anrao19 commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

FYI, pr testing is in progress... Tracker created for same is : https://tracker.ceph.com/issues/75780

Pr testing completed. Tacker approved by @ivancich. More details : https://tracker.ceph.com/issues/75780
@smanjara , if no further testing needed, pr can be merged

@anrao19
anrao19 merged commit fbee74f into ceph:main Apr 20, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants