]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/SnapMapper::update_snaps() to handle a missing OBJ_ record 68707/head
authorRonen Friedman <rfriedma@redhat.com>
Thu, 30 Apr 2026 16:46:58 +0000 (16:46 +0000)
committerRonen Friedman <rfriedma@redhat.com>
Tue, 5 May 2026 09:09:03 +0000 (09:09 +0000)
commitac06cb5a959eee1d8545b1b47ac714588e32e870
treee7f1fe8a3eee13102106e3be65c5a3e2e3482c94
parent7fa364b13e265b5efb57112b42e3e77b559551bd
osd/SnapMapper::update_snaps() to handle a missing OBJ_ record

by falling back to add_oid() instead of silently creating an
inconsistent state (OBJ_ without matching SNA_ entries). This
was observed on replicas that had recently recovered objects:
the snap mapper entries created during recovery were not visible
to a subsequent snap-trim repop's update_snaps() call, leaving
the clone with no snap mapper entries. Scrub would then detect
and report the inconsistency as an error.

Promote snap mapper remove_oid/clear_snaps logging to dout(10)
and add apply_op_stats tracing to aid diagnosis of any remaining
stat or snap mapper drift.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/osd/SnapMapper.cc