Repository navigation
crimson/osd: fix backfill deadlock when only delete operations remain - #69942
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]>
|
jenkins test api |
|
jenkins test windows |
My understanding (at this time, with no access this morning to the logs) is that my fix solves the actual problem that created the resource exhaustion, while Mohit's improves the handling of no-resources in general (but will not solve the specific case solved here). |
I agree with Ronen, BudgetBlocked is not appropriate in this case. |
rzarzynski
left a comment
There was a problem hiding this comment.
Makes sense. Thanks, @ronen-fr.
|
Merging based on my Teuthology tests. 4 failures - all unrelated. |
|
This is an automated message by src/script/redmine-upkeep.py. I have resolved the following tracker ticket due to the merge of this PR: No backports are pending for the ticket. If this is incorrect, please update the tracker |
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