Skip to content

osd/PeeringState.h: ignore RemoteBackfillReserved in WaitLocalBackfillReserved - #33525

Merged
liewegas merged 1 commit into
ceph:masterfrom
neha-ojha:wip-44248
Feb 25, 2020
Merged

liewegas merged 1 commit into
ceph:masterfrom
neha-ojha:wip-44248

Conversation

@neha-ojha

Copy link
Copy Markdown
Member

It is possible to dequeue an outstanding RemoteBackfillReserved, though we may have
already released reservations for that backfill target. Currently, if this happens
while we are in WaitLocalBackfillReserved, it can lead to a crash on the primary.
Prevent this by treating this condition as a no-op.

The longer term fix is to add a RELEASE_ACK mechanism, which prevents the primary
from scheduling a backfill retry until all the RELEASE_ACKs have been received.

Fixes: https://tracker.ceph.com/issues/44248
Signed-off-by: Neha Ojha [email protected]

…lReserved

It is possible to dequeue an outstanding RemoteBackfillReserved, though we may have
already released reservations for that backfill target. Currently, if this happens
while we are in WaitLocalBackfillReserved, it can lead to a crash on the primary.
Prevent this by treating this condition as a no-op.

The longer term fix is to add a RELEASE_ACK mechanism, which prevents the primary
from scheduling a backfill retry until all the RELEASE_ACKs have been received.

Fixes: https://tracker.ceph.com/issues/44248
Signed-off-by: Neha Ojha <[email protected]>
@neha-ojha neha-ojha added this to the octopus milestone Feb 25, 2020
@neha-ojha
neha-ojha requested a review from dzafman February 25, 2020 03:16
@xiexingguo

Copy link
Copy Markdown
Member

Hmm, I guess the culprit is that we allow cancellation of backfilling for various reasons, e.g., because preemption happens. Is it possible the obsolete RemoteBackfillReserved get mis-processed by a follow-up backfill reservation cycle? In the long term, we might need some tid-like-mechanism to make sure peers can interchange with each other clearly during backfilling...

@neha-ojha

Copy link
Copy Markdown
Member Author

Hmm, I guess the culprit is that we allow cancellation of backfilling for various reasons, e.g., because preemption happens. Is it possible the obsolete RemoteBackfillReserved get mis-processed by a follow-up backfill reservation cycle? In the long term, we might need some tid-like-mechanism to make sure peers can interchange with each other clearly during backfilling...

https://tracker.ceph.com/issues/44248#note-3 is what ended up happening. Yeah, agreed, we need a mechanism to deterministically schedule a follow-up backfill reservation cycle, without having to deal with leftovers from previous cycles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants