]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: address bug where object puts could write to decommissioned shard
authorJ. Eric Ivancich <ivancich@redhat.com>
Fri, 28 Oct 2022 19:14:51 +0000 (15:14 -0400)
committerJ. Eric Ivancich <ivancich@redhat.com>
Thu, 9 Feb 2023 19:36:07 +0000 (14:36 -0500)
commit0a09d78f0f834db0ff803040b9c44d290762ac4b
tree327ef2b815b8f17bed8c23a6e8a0b55fbff1b56e
parent2c9e0b364b7cf0ed547ccc3b26a621778cedf950
rgw: address bug where object puts could write to decommissioned shard

Addresses an apparent bug where some object writes that initiate
around the time that resharding completes are written to the old
bucket index shard rather than the new one.

Other write operations to a bucket index shard now also assert their
existance so as not to re-create old bucket index shards.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
src/cls/rgw/cls_rgw_client.cc
src/cls/rgw/cls_rgw_types.cc
src/cls/rgw/cls_rgw_types.h
src/rgw/rgw_rados.cc
src/rgw/rgw_rados.h
src/rgw/rgw_reshard.cc