mirror of
https://github.com/kvcache-ai/vllm.git
synced 2026-11-05 01:07:43 +00:00
[PR #6] [MERGED] [Bugfix] Ignore late Mooncake ready events for cancelled transfers #7
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/vllm#7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/kvcache-ai/vllm/pull/6
Author: @jiaran-king
Created: 8/27/2026
Status: ✅ Merged
Merged: 8/28/2026
Merged by: @gty111
Base:
add-mooncake-ec-connector← Head:fix/mooncake-ignore-cancelled-ready-events📝 Commits (1)
d65a282[Bugfix] Ignore late Mooncake ready events for cancelled transfers📊 Changes
2 files changed (+38 additions, -0 deletions)
View changed files
📝
tests/v1/ec_connector/unit/test_ec_mooncake_connector.py(+35 -0)📝
vllm/distributed/ec_transfer/ec_connector/mooncake_ec_connector.py(+3 -0)📄 Description
Purpose
A late
readyevent can recreate a pending spec after itstransfer_idhasalready been cancelled and the Worker reservation removed.
This change drops ready events for cancelled transfer IDs before TP shard
aggregation. A new transfer with the same
mm_hashremains valid.This is independent of kvcache-ai/vllm#5: duplicate preparation can amplify
the race, but one ready event queued before the Worker processes the
asynchronous cancel is sufficient.
Evidence
The regression test deterministically reproduces the issue on the base: after
all TP4 ready shards are received, a cancelled transfer is recreated in
_pending_specs.With the fix, the cancelled transfer remains absent from both
_pending_specsand
_event_ready_shards.Duplicate-work Check
I searched open PRs in
vllm-project/vllmandkvcache-ai/vllmfor thiscancelled-transfer ready-event race. No existing PR addresses it.
AI assistance was used in preparing this change.
Test Plan
Test Result
1 failed; patch1 passed.43 passed, 1 warning.unchanged.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.