Skip to content

tentacle: osd/scrub: auto-correct accounting-only stat mismatches - #70649

Merged
batrick merged 1 commit into
ceph:tentaclefrom
ronen-fr:wip-rf-68684-tentacle
Aug 21, 2026
Merged

batrick merged 1 commit into
ceph:tentaclefrom
ronen-fr:wip-rf-68684-tentacle

Conversation

@ronen-fr

@ronen-fr ronen-fr commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

When scrub detects a PG stats mismatch but no object-level inconsistencies (all replicas agree on actual data), fix the stats in place rather than reporting a scrub error.

Previously, a pure stat mismatch would log [ERR], increment shallow_errors, and trigger OSD_SCRUB_ERRORS / PG_STATE_INCONSISTENT health alerts — yet leave the stats unfixed unless a repair scrub was manually initiated. The scrubber's own object count is authoritative in this case.

Persistence of the corrected stats is deferred until the next transaction that sets dirty_info, consistent with the existing stats_invalid repair path.

A backport of #68684
Original tracker: https://tracker.ceph.com/issues/76562
Backport tracker: https://tracker.ceph.com/issues/78819
(cherry picked from commit f827e4d)

When scrub detects a PG stats mismatch but no object-level
inconsistencies (all replicas agree on actual data), fix the
stats in place rather than reporting a scrub error.

Previously, a pure stat mismatch would log [ERR], increment
shallow_errors, and trigger OSD_SCRUB_ERRORS / PG_STATE_INCONSISTENT
health alerts — yet leave the stats unfixed unless a repair
scrub was manually initiated. The scrubber's own object count
is authoritative in this case.

Persistence of the corrected stats is deferred until the next
transaction that sets dirty_info, consistent with the existing
stats_invalid repair path.

Signed-off-by: Ronen Friedman <[email protected]>
(cherry picked from commit f827e4d)
@ronen-fr
ronen-fr requested a review from a team as a code owner July 29, 2026 07:41
@github-actions github-actions Bot added the core label Jul 29, 2026
@github-actions github-actions Bot added this to the tentacle milestone Jul 29, 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 Jul 29, 2026
@ronen-fr
ronen-fr requested review from kamoltat and rzarzynski July 29, 2026 07:56
@ronen-fr ronen-fr removed the releng-audit-fail Release engineering: failed backport verification audit. label Jul 29, 2026
@github-actions github-actions Bot added the releng-audit-pass Release engineering: passed backport verification audit. label Jul 29, 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.

@yuriw

yuriw commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri13-testing-20260729.211123-tentacle.

@amathuria

Copy link
Copy Markdown
Contributor

@ronen-fr

Copy link
Copy Markdown
Contributor Author

@batrick - can this be merged now? thanks

@batrick batrick modified the milestones: tentacle, v20.2.5 Aug 21, 2026
@batrick
batrick merged commit 5389f49 into ceph:tentacle Aug 21, 2026
16 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport bug-fix core needs-qa releng-audit-pass Release engineering: passed backport verification audit. wip-yuri13-testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants