Skip to content

umbrella: crimson/osd: fix backfill deadlock when only drop operations remain - #70343

Merged
batrick merged 1 commit into
ceph:umbrellafrom
ronen-fr:wip-rf-69942-umbrella
Aug 3, 2026
Merged

batrick merged 1 commit into
ceph:umbrellafrom
ronen-fr:wip-rf-69942-umbrella

Conversation

@ronen-fr

@ronen-fr ronen-fr commented Jul 20, 2026 •

Copy link
Copy Markdown
Contributor

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)

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)
@ronen-fr
ronen-fr requested a review from a team as a code owner July 20, 2026 15:36
@github-actions github-actions Bot added this to the umbrella milestone Jul 20, 2026
github-actions[bot]

This comment was marked as outdated.

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Jul 20, 2026
@ronen-fr ronen-fr added backport and removed releng-audit-fail Release engineering: failed backport verification audit. labels Jul 20, 2026
@github-actions github-actions Bot added the releng-audit-pass Release engineering: passed backport verification audit. label Jul 20, 2026
@ronen-fr
ronen-fr requested review from Matan-B and rzarzynski July 20, 2026 16:51
@batrick batrick modified the milestones: umbrella, v21.1.1 Jul 29, 2026

@rzarzynski rzarzynski left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM – straightforward backport.

@yuriw

yuriw commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri9-testing-20260729.135117-umbrella.

@batrick
batrick merged commit bdd162d into ceph:umbrella Aug 3, 2026
12 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport crimson needs-qa releng-audit-pass Release engineering: passed backport verification audit. wip-yuri9-testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants