Skip to content

osd/scrub: scanning the rollbacks not mandating a reschedule - #65780

Merged
ronen-fr merged 1 commit into
ceph:mainfrom
ronen-fr:wip-rf-fastrolls
Nov 10, 2025
Merged

ronen-fr merged 1 commit into
ceph:mainfrom
ronen-fr:wip-rf-fastrolls

Conversation

@ronen-fr

@ronen-fr ronen-fr commented Oct 5, 2025 •

Copy link
Copy Markdown
Contributor

The scrubber calls PG::_scan_rollback_obs() to clean up obsolete rollback objects. This function may queue a transaction to delete such objects.

The commit modifies the scrubber, so that no rescheduling of the scrub is mandated if no transaction was queued.

The description above is also documented as:
Fixes: https://tracker.ceph.com/issues/73773

@ronen-fr
ronen-fr requested a review from a team as a code owner October 5, 2025 05:41
@github-actions github-actions Bot added the core label Oct 5, 2025
@ronen-fr

Copy link
Copy Markdown
Contributor Author

Added the 'performance' label, as the change is expected to have some effect on scrub times for PGs with a large number of objects.

@ronen-fr

Copy link
Copy Markdown
Contributor Author

jenkins test make check arm64

@shraddhaag

Copy link
Copy Markdown
Contributor

Hey @ronen-fr, while analysing the QA run which contains this PR: https://tracker.ceph.com/issues/73579, I noticed an error which might be related to this PR:

Timeout 3h running clone.client.0/qa/standalone/scrub/osd-scrub-repair.sh
1 jobs: ['8576460']
suites: ['rados/standalone/{supported-random-distro$/{ubuntu_latest}', 'workloads/scrub}']

Further logs in teuthology.log:

2025-10-30T13:09:31.924 INFO:tasks.workunit.client.0.smithi122.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/ceph-helpers.sh:1678: wait_for_clean:  return 0
2025-10-30T13:09:31.924 INFO:tasks.workunit.client.0.smithi122.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/ceph-helpers.sh:2536: create_ec_pool:  return 0
2025-10-30T13:09:31.924 INFO:tasks.workunit.client.0.smithi122.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/scrub/osd-scrub-repair.sh:897: corrupt_and_repair_lrc:  corrupt_and_repair_erasure_coded td/osd-scrub-repair ecpool
2025-10-30T13:09:31.924 INFO:tasks.workunit.client.0.smithi122.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/scrub/osd-scrub-repair.sh:308: corrupt_and_repair_erasure_coded:  local dir=td/osd-scrub-repair
2025-10-30T13:09:31.924 INFO:tasks.workunit.client.0.smithi122.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/scrub/osd-scrub-repair.sh:309: corrupt_and_repair_erasure_coded:  local poolname=ecpool
2025-10-30T13:09:31.924 INFO:tasks.workunit.client.0.smithi122.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/scrub/osd-scrub-repair.sh:311: corrupt_and_repair_erasure_coded:  add_something td/osd-scrub-repair ecpool
2025-10-30T13:09:31.925 INFO:tasks.workunit.client.0.smithi122.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/scrub/osd-scrub-repair.sh:71: add_something:  local dir=td/osd-scrub-repair
2025-10-30T13:09:31.925 INFO:tasks.workunit.client.0.smithi122.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/scrub/osd-scrub-repair.sh:72: add_something:  local poolname=ecpool
2025-10-30T13:09:31.925 INFO:tasks.workunit.client.0.smithi122.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/scrub/osd-scrub-repair.sh:73: add_something:  local obj=SOMETHING
2025-10-30T13:09:31.925 INFO:tasks.workunit.client.0.smithi122.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/scrub/osd-scrub-repair.sh:74: add_something:  local scrub=noscrub
2025-10-30T13:09:31.925 INFO:tasks.workunit.client.0.smithi122.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/scrub/osd-scrub-repair.sh:76: add_something:  '[' noscrub = noscrub ']'
2025-10-30T13:09:31.925 INFO:tasks.workunit.client.0.smithi122.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/scrub/osd-scrub-repair.sh:78: add_something:  ceph osd set noscrub
2025-10-30T13:14:32.032 INFO:tasks.workunit.client.0.smithi122.stderr:2025-10-30T13:14:32.026+0000 7f37f20fa640  0 monclient(hunting): authenticate timed out after 300
2025-10-30T13:14:32.033 INFO:tasks.workunit.client.0.smithi122.stderr:[errno 110] RADOS timed out (error connecting to the cluster)
2025-10-30T13:14:32.036 INFO:tasks.workunit.client.0.smithi122.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/scrub/osd-scrub-repair.sh:78: add_something:  return 1
2025-10-30T13:14:32.036 INFO:tasks.workunit.client.0.smithi122.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/scrub/osd-scrub-repair.sh:311: corrupt_and_repair_erasure_coded:  return 1
2025-10-30T13:14:32.036 INFO:tasks.workunit.client.0.smithi122.stderr:/home/ubuntu/cephtest/clone.client.0/qa/standalone/scrub/osd-scrub-repair.sh:897: corrupt_and_repair_lrc:  return 1

Could you please check if the above error is related to this PR?

@ronen-fr

Copy link
Copy Markdown
Contributor Author

@shraddhaag
Thanks for reviewing.
In 8576460, the failure is a monitor crash on EC profile check - unrelated to
my changes (seems to me to be https://tracker.ceph.com/issues/73661)

I plan to rebase, then merge the PR.

The scrubber calls PG::_scan_rollback_obs() to clean up obsolete
rollback objects. This function may queue a transaction to
delete such objects.

The commit modifies the scrubber, so that no rescheduling of
the scrub is mandated if no transaction was queued.

Fixes: https://tracker.ceph.com/issues/73773
Signed-off-by: Ronen Friedman <[email protected]>
@ronen-fr

Copy link
Copy Markdown
Contributor Author

Rebased & retested locally

@ronen-fr
ronen-fr merged commit cf11bef into ceph:main Nov 10, 2025
@ronen-fr
ronen-fr deleted the wip-rf-fastrolls branch November 10, 2025 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants