]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw/reshard: bucket reshard may race with bucket index update. 66553/head
authorShilpa Jagannath <smanjara@redhat.com>
Mon, 8 Dec 2025 17:48:53 +0000 (12:48 -0500)
committerShilpa Jagannath <smanjara@redhat.com>
Mon, 8 Dec 2025 19:11:16 +0000 (14:11 -0500)
commite34067f8ceab85d9eb97eecd7d6f753e82747930
tree2b126200a27d4c3a45329f3a276b2ae518793572
parentc34bbe6604c48b3609ecd5dcb2b0f0644b2110f9
rgw/reshard: bucket reshard may race with bucket index update.
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 <smanjara@redhat.com>
src/rgw/driver/rados/rgw_rados.cc