Project

General

Profile

Actions

Bug #75690

open
SM SM

rgw-multisite: tombstone cache inconsistency

Bug #75690: rgw-multisite: tombstone cache inconsistency

Added by Shilpa MJ 8 months ago. Updated 8 months ago.

Status:
New
Priority:
Normal
Assignee:
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
multisite multisite-backlog
Merge Commit:
Fixed In:
Released In:
Upkeep Timestamp:

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 Actions #1

  • Tags (freeform) set to multisite multisite-backlog

JI Updated by J. Eric Ivancich 8 months ago Actions #2

  • Assignee set to Shilpa MJ
Actions

Also available in: PDF Atom