Bug #75690
openrgw-multisite: tombstone cache inconsistency
0%
Description
obj_tombstone_cache is an in-memory cache(lru_map<rgw_obj, tombstone_entry>) of recently deleted objects, storing {mtime, zone_short_id, pg_ver}. on delete_obj(), the deleted object's state is stored into the local instance's cache. in get_obj_state_impl(), when a stat returns -ENOENT upon read, sync looks up the tombstone to recover the deletion's mtime: https://github.com/ceph/ceph/blob/main/src/rgw/driver/rados/rgw_rados.cc#L6977-L6986. when a DeleteObject happens on RGW instance A, only A's obj_tombstone_cache cache records the deletion's mtime. if the sync runs on a different instance, that instance's cache has no entry, so get_obj_state_impl() falls back to mtime = real_time() for the missing object. on the secondary, this incoming request is treated as a new
PUT request, thus re-syncing the object back to primary.
CB Updated by Casey Bodley 8 months ago
- Tags (freeform) set to multisite multisite-backlog
JI Updated by J. Eric Ivancich 8 months ago
- Assignee set to Shilpa MJ