Repository navigation
osd/PeeringState.h: ignore RemoteBackfillReserved in WaitLocalBackfillReserved - #33525
Conversation
…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]>
|
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. |
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]