Repository navigation
qa/standalone/osd: fix recovery_toofull race in osd-recovery-space.sh - #71393
Merged
Merged
Conversation
TEST_recovery_test_simple relies on the recovery target OSD crossing its full-ratio while recovery is still in progress. But fake_statfs only reports the OSD as full once the recovered data has landed, so on fast hardware the small (~3MB) recovery completes (PG active+clean) before the OSD's periodic full-status check ever fires, and recovery_toofull never triggers. Throttle recovery (osd_recovery_sleep) so the full-status check reliably fires before recovery finishes. Also fix wait_for_recovery_toofull(): it tested an unset $ret instead of the return code of wait_for_state, so the timeout was silently swallowed and the helper always returned success. Fixes: https://tracker.ceph.com/issues/80024 Signed-off-by: Ronen Friedman <[email protected]>
rzarzynski
approved these changes
Sep 2, 2026
| # and recovery_toofull never triggers. | ||
| for o in $(seq 0 $(expr $OSDS - 1)) | ||
| do | ||
| ceph tell osd.$o injectargs '--osd_recovery_sleep 0.05' || return 1 |
Contributor
There was a problem hiding this comment.
The sleep driven synchronization seems more than enough for a test.
Contributor
|
This PR has been added to wip-bharath10-testing-20260903.050751-main. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TEST_recovery_test_simple relies on the recovery target OSD crossing its full-ratio while recovery is still in progress. But fake_statfs only reports the OSD as full once the recovered data has landed, so on fast hardware the small (~3MB) recovery completes (PG active+clean) before the OSD's periodic full-status check ever fires, and recovery_toofull never triggers.
Throttle recovery (osd_recovery_sleep) so the full-status check reliably fires before recovery finishes.
Also fix wait_for_recovery_toofull(): it tested an unset $ret instead of the return code of wait_for_state, so the timeout was silently swallowed and the helper always returned success.
Fixes: https://tracker.ceph.com/issues/80024