Skip to content

rgw: retry ENOENT if bucket reshard races with index operation - #66553

Merged
smanjara merged 1 commit into
ceph:mainfrom
smanjara:wip-fix-object-sync-enoent
Feb 12, 2026
Merged

smanjara merged 1 commit into
ceph:mainfrom
smanjara:wip-fix-object-sync-enoent

Conversation

@smanjara

@smanjara smanjara commented Dec 8, 2025 •

Copy link
Copy Markdown
Contributor

fixes: https://tracker.ceph.com/issues/74144

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.

@smanjara
smanjara requested a review from a team as a code owner December 8, 2025 14:23
@github-actions github-actions Bot added the rgw label Dec 8, 2025

@smanjara smanjara left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

since we call UpdateIndex::prepare() from here to recalculate the shard for a given key, I think it is ok to retry here. thoughts @cbodley ?

Comment thread src/rgw/driver/rados/rgw_rados.cc Resolved
@smanjara
smanjara force-pushed the wip-fix-object-sync-enoent branch from eb030cc to 02e84ee Compare December 8, 2025 18:20
@smanjara smanjara changed the title rgw/multisite: retry update index if object sync raced with reshard rgw/multisite: retry ENOENT if bucket reshard races with index operation Dec 8, 2025
@smanjara smanjara changed the title rgw/multisite: retry ENOENT if bucket reshard races with index operation rgw: retry ENOENT if bucket reshard races with index operation Dec 8, 2025
Comment thread src/rgw/driver/rados/rgw_rados.cc Resolved
Comment thread src/rgw/driver/rados/rgw_rados.cc Resolved
guard_reshard() serves as a wrapper to protect bucket index operations
against concurrent resharding. but it only handles -ERR_BUSY_RESHARDING
if bucket index update is already in progress with bucket shard
assigned, and a concurrent resharding operation deletes this old shard
object, there may be a window of operations targeting the old shards
failing with -ENOENT. this error is not caught anywhere in the calling
functions. as a result we could end up with objects in an inconsistent state.

Signed-off-by: Shilpa Jagannath <[email protected]>
@smanjara
smanjara force-pushed the wip-fix-object-sync-enoent branch from 02e84ee to e34067f Compare December 8, 2025 19:14
@ivancich ivancich added the wip-eric-testing-1 for ivancich testing label Feb 4, 2026
@ivancich

Copy link
Copy Markdown
Member

jenkins test make check arm64

@smanjara
smanjara merged commit bc11937 into ceph:main Feb 12, 2026
@github-actions

Copy link
Copy Markdown

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
ticket and reset to Pending Backport state.

Update Log: https://github.com/ceph/ceph/actions/runs/21962067367

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