Project

General

Profile

Actions

Bug #72051

closed
LF JB

Scrub stat mismatch in thrashing test

Bug #72051: Scrub stat mismatch in thrashing test

Added by Laura Flores over 1 year ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Category:
-
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
Pull request ID:
Tags (freeform):
Fixed In:
v20.3.0-3058-g10f802aa31
Released In:
v21.2.0~2057
Upkeep Timestamp:
2026-10-24T01:41:11+00:00

Description

/a/yuriw-2025-06-28_18:55:21-rados-wip-yuri-testing-2025-06-28-0812-distro-default-smithi/8355161

2025-06-28T21:00:07.734 INFO:teuthology.orchestra.run.smithi046.stdout:2025-06-28T20:58:17.522153+0000 osd.4 (osd.4) 40 : cluster [ERR] 3.1 scrub : stat mismatch, got 11/11 objects, 0/0 clones, 11/11 dirty, 0/0 omap, 0/0 pinned, 0/0 hit_set_archive, 0/0 whiteouts, 32408318/32643253 bytes, 0/0 manifest objects, 0/0 hit_set_archive bytes.

Did not reproduce after rerunning the test 10x: http://pulpito.ceph.com/lflores-2025-07-08_21:11:05-rados-wip-yuri-testing-2025-06-28-0812-distro-default-smithi/


Related issues 1 (0 open — 1 closed)

Related to RADOS - Bug #73260: Scrub stat mismatch error with ec_optimizations_onResolvedJonathan Bailey

Actions

RZ Updated by Radoslaw Zarzynski over 1 year ago Actions #1

  • Assignee set to Jonathan Bailey

RZ Updated by Radoslaw Zarzynski over 1 year ago Actions #2

Bump up.

RZ Updated by Radoslaw Zarzynski over 1 year ago Actions #3

Talked with Jonathan. The bug is being investigated.

RZ Updated by Radoslaw Zarzynski over 1 year ago Actions #4

Bump up.

LF Updated by Laura Flores over 1 year ago Actions #5

  • Status changed from New to In Progress

Radoslaw Zarzynski wrote in #note-3:

Talked with Jonathan. The bug is being investigated.

Based on this, setting to "In Progress".

RZ Updated by Radoslaw Zarzynski over 1 year ago Actions #6

JB Updated by Jonathan Bailey over 1 year ago Actions #7

Hi @Radoslaw Zarzynski - I mentioned I was looking into where we were seeing this with ec_optimizations turned on.

For tests with ec optimisations turned on, this commit (https://github.com/ceph/ceph/pull/64917/commits/594949aeaaf032831e48255011d84e4983c2f94e) will be going into EC Fixpack 3 (https://github.com/ceph/ceph/pull/64917).

The reason we are seeing this is that during peering we always take the shard with the oldest stats and use the stats for that shard as the source of truth when we are rolling forwards shards.
With ec optimisations turned on, this is not always correct, as a shards that don't participate in a partial write might not have had the stats updated in certain cases.

In the case that was specifically raised here, it looks like ec_optimizations are not turned on from my search of the logs:

[jonbailey1993@folio02 8355161]$ zcat remote/*/log/ceph-mon.*.log* | grep "mon_command" | grep "osd pool set" | grep "allow_ec_overwrites" 
[jonbailey1993@folio02 8355161]$ zcat remote/*/log/ceph-mon.*.log* | grep "flags" 
2025-06-28T20:54:00.529+0000 7faad8929640 10 mon.a@0(leader).osd e21 scan_for_creating_pgs queueing pool create for 1 replicated size 3 min_size 2 crush_rule 0 object_hash rjenkins pg_num 1 pgp_num 1 autoscale_mode off last_change 22 flags hashpspool,creating stripe_width 0 pg_num_max 32 pg_num_min 1
2025-06-28T20:54:06.936+0000 7faad8929640 10 mon.a@0(leader).osd e24 scan_for_creating_pgs queueing pool create for 2 replicated size 3 min_size 2 crush_rule 0 object_hash rjenkins pg_num 8 pgp_num 8 autoscale_mode off last_change 25 flags hashpspool,creating stripe_width 0
2025-06-28T20:54:21.286+0000 7faad8929640 10 mon.a@0(leader).osd e30 scan_for_creating_pgs queueing pool create for 3 replicated size 3 min_size 2 crush_rule 0 object_hash rjenkins pg_num 16 pgp_num 16 autoscale_mode off last_change 31 flags hashpspool,creating stripe_width 0

Because of that, I don't think this can be the same cause as it would not have received any partial writes, so I think someone might have to take a look at it from a non-ec-optimized standpoint if I'm understanding things correctly.

RZ Updated by Radoslaw Zarzynski over 1 year ago Actions #8

  • Status changed from In Progress to Fix Under Review
  • Pull request ID set to 64917

LF Updated by Laura Flores about 1 year ago Actions #9

PR is still in draft form.

RZ Updated by Radoslaw Zarzynski about 1 year ago Actions #10

PR under review.

UB Updated by Upkeep Bot about 1 year ago Actions #11

  • Status changed from Fix Under Review to Resolved
  • Merge Commit set to 10f802aa31bd1102fba6a5d663b9af2d68831b53
  • Fixed In set to v20.3.0-3058-g10f802aa31
  • Upkeep Timestamp set to 2025-09-16T21:37:32+00:00

LF Updated by Laura Flores about 1 year ago Actions #12

  • Related to Bug #73260: Scrub stat mismatch error with ec_optimizations_on added

UB Updated by Upkeep Bot about 1 month ago Actions #13

  • Released In set to v21.2.0~2057
  • Upkeep Timestamp changed from 2025-09-16T21:37:32+00:00 to 2026-10-24T01:41:11+00:00
Actions

Also available in: PDF Atom