Repository navigation
umbrella: crimson/osd: fix backfill deadlock when only drop operations remain - #70343
Merged
Merged
Conversation
BackfillState::Waiting requires an ObjectPushed event to transition back to Enqueuing, but drop (remove) operations are fire-and-forget and never generate ObjectPushed. When a backfill round enqueues only drops and no pushes, the FSM permanently stalls in the Waiting state, holding the backfill reservation and blocking all other PGs from backfilling to that OSD. Fix by adding a pending-pushes counter to ProgressTracker to distinguish "only drops remain" from "pushes still in-flight". When all pushes are complete and the namespace is exhausted, drain remaining drop entries and advance last_backfill to MAX so that OP_BACKFILL_FINISH triggers the normal completion path via RequestDone. The classic OSD avoids this by design: drops are never tracked as in-flight operations in recover_backfill() and are drained inline. Fixes: https://tracker.ceph.com/issues/77936 Assisted-by: Claude <claude.ai> Signed-off-by: Ronen Friedman <[email protected]> (cherry picked from commit f64896d)
rzarzynski
approved these changes
Jul 29, 2026
rzarzynski
left a comment
Contributor
There was a problem hiding this comment.
LGTM – straightforward backport.
Contributor
|
This PR has been added to wip-yuri9-testing-20260729.135117-umbrella. |
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.
BackfillState::Waiting requires an ObjectPushed event to transition back to Enqueuing, but
drop (remove) operations are fire-and-forget and never generate ObjectPushed. When a
backfill round enqueues only drops and no pushes, the FSM permanently stalls in the
Waiting state, holding the backfill reservation and blocking all other PGs from backfilling to that OSD.
Fix by adding a pending-pushes counter to ProgressTracker to distinguish "only drops remain"
from "pushes still in-flight". When all pushes are complete and the namespace is exhausted,
drain remaining drop entries and advance last_backfill to MAX so that OP_BACKFILL_FINISH
triggers the normal completion path via RequestDone.
The classic OSD avoids this by design: drops are never tracked as in-flight operations in
recover_backfill() and are drained inline.
Backport of #69942
Fixes: https://tracker.ceph.com/issues/78421
Original tracker: https://tracker.ceph.com/issues/77936
(cherry picked from commit f64896d)