Skip to content

tentacle: osd/SnapMapper::update_snaps() to handle a missing OBJ_ record - #73804

Open
ronen-fr wants to merge 1 commit into
ceph:tentaclefrom
ronen-fr:wip-rf-68707-tentacle
Open

ronen-fr wants to merge 1 commit into
ceph:tentaclefrom
ronen-fr:wip-rf-68707-tentacle

Conversation

@ronen-fr

Copy link
Copy Markdown
Contributor

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.

(cherry picked from commit ac06cb5)
Fixes: https://tracker.ceph.com/issues/83050
Original tracker: https://tracker.ceph.com/issues/75007
Backport of #68707

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 <[email protected]>
(cherry picked from commit ac06cb5)
@ronen-fr
ronen-fr requested a review from a team as a code owner November 12, 2026 07:44
@github-actions github-actions Bot added the core label Nov 12, 2026
@github-actions github-actions Bot added this to the tentacle milestone Nov 12, 2026
github-actions[bot]

This comment was marked as outdated.

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Nov 12, 2026
@ronen-fr

Copy link
Copy Markdown
Contributor Author

Re the backport checker: the PR was linked two hours ago. What gives???

@ronen-fr

Copy link
Copy Markdown
Contributor Author

/audit retest

@github-actions

Copy link
Copy Markdown

🔄 Audit Retest Triggered by @ronen-fr.

View workflow run

@github-actions github-actions Bot added releng-audit-pass Release engineering: passed backport verification audit. and removed releng-audit-fail Release engineering: failed backport verification audit. labels Nov 12, 2026

@rzarzynski rzarzynski left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM – straightforward backport.

@SrinivasaBharath

Copy link
Copy Markdown
Contributor

This PR has been added to wip-bharath31-testing-20261114.234838-tentacle.

@ronen-fr

Copy link
Copy Markdown
Contributor Author

@ronen-fr

ronen-fr commented Dec 3, 2026

Copy link
Copy Markdown
Contributor Author

@batrick - Hi. Can you merge this one? Tx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core releng-audit-pass Release engineering: passed backport verification audit.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants