Skip to content

qa/standalone/scrub: fix "scrubbed in 0ms" in osd-scrub-test.sh#64429

Merged
ronen-fr merged 1 commit intoceph:mainfrom
ronen-fr:wip-rf-noempty
Jul 10, 2025
Merged

qa/standalone/scrub: fix "scrubbed in 0ms" in osd-scrub-test.sh#64429
ronen-fr merged 1 commit intoceph:mainfrom
ronen-fr:wip-rf-noempty

Conversation

@ronen-fr
Copy link
Contributor

The specific test looks for a 'last scrub duration' higher than 0 as a sign that the scrub actually ran. Previous code fixes guaranteed that even a scrub duration as low as 1ms would be reported as "1" (1s). However, none of the 15 objects created in this test were designated for the tested PG, which remained empty. As a result, the scrub duration was reported as "0".

The fix is to create a large enough number of objects so that at least one of them is mapped to the tested PG.

Fixes: https://tracker.ceph.com/issues/71801

The specific test looks for a 'last scrub duration' higher than
0 as a sign that the scrub actually ran.  Previous code fixes
guaranteed that even a scrub duration as low as 1ms would be
reported as "1" (1s).  However, none of the 15 objects created
in this test were designated for the tested PG, which remained
empty.  As a result, the scrub duration was reported as "0".

The fix is to create a large enough number of objects so that
at least one of them is mapped to the tested PG.

Fixes: https://tracker.ceph.com/issues/71801
Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
@ronen-fr ronen-fr requested a review from a team as a code owner July 10, 2025 08:00
@ronen-fr ronen-fr added bug-fix needs-squid-backport PR needs a squid backport needs-tentacle-backport PRs that need tentacle back-port labels Jul 10, 2025
@ronen-fr
Copy link
Contributor Author

Running the Teuthology test (this change only involves one test) myself now (currently - 4 copies of the test).

@ronen-fr
Copy link
Contributor Author

Merging based on 8X runs of the test in Teuthology

@ronen-fr ronen-fr merged commit a4388df into ceph:main Jul 10, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug-fix core needs-qa needs-squid-backport PR needs a squid backport needs-tentacle-backport PRs that need tentacle back-port tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants