[PD] Fix abort_request for PD disaggregation (#8352)

Signed-off-by: Shangming Cai <caishangming@linux.alibaba.com>
Co-authored-by: ybyang <10629930+whybeyoung@users.noreply.github.com>
This commit is contained in:
Shangming Cai
2025-07-28 12:48:27 +08:00
committed by GitHub
parent 4ad9737045
commit 2fd5c7049f
2 changed files with 47 additions and 0 deletions

View File

@@ -992,6 +992,14 @@ class MooncakeKVSender(BaseKVSender):
)
raise KVTransferError(self.bootstrap_room, failure_reason)
def abort(self):
self.kv_mgr.record_failure(
self.bootstrap_room,
"Aborted by AbortReq.",
)
# Explicitly set the status to failure since this request has been aborted
self.conclude_state = KVPoll.Failed
class MooncakeKVReceiver(BaseKVReceiver):
_ctx = zmq.Context()
@@ -1305,6 +1313,14 @@ class MooncakeKVReceiver(BaseKVReceiver):
)
raise KVTransferError(self.bootstrap_room, failure_reason)
def abort(self):
self.kv_mgr.record_failure(
self.bootstrap_room,
"Aborted by AbortReq.",
)
# Explicitly set the status to failure since this request has been aborted
self.conclude_state = KVPoll.Failed
class MooncakeKVBootstrapServer(BaseKVBootstrapServer):
def __init__(self, port: int):