[PD] Simplify late-abort quiescent ack branch to else (#40711)

This commit is contained in:
Shangming Cai
2026-09-22 19:08:47 +08:00
committed by GitHub
parent cb8dab06be
commit 861b11f087
@@ -2485,10 +2485,10 @@ class MooncakeKVManager(StagingManagerMixin, CommonKVManager):
f"Received abort notification for room {room_to_be_aborted}, "
f"marked as Failed; ACK deferred until transfer drains"
)
elif self._staging_outstanding.get(room_to_be_aborted, 0) == 0:
# Concluded/unknown AND quiescent: ack now. A cleared
# room is not automatically quiescent -- clear() can
# drop a room whose chunk is still transferring.
else:
# Concluded/unknown AND quiescent (the branch above
# already took every case with writes outstanding):
# ack now so decode releases without the timeout.
self._send_abort_ack(
decode_ip, decode_port, room_to_be_aborted
)