fix: backport Mooncake empty-pull completion guard #322
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 169 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.307
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #322"
general
weight: 0.35
yeahdongcn
Summary
In disaggregated prefill/decode serving, an early-canceled or rejected decode request sends an empty-block pull to release producer KV. The successful cleanup reply was incorrectly reported as KV receive completion after the scheduler had removed the request, triggering
assert req_id in self.requestsand crashing the decode engine.Changes
Backports upstream PR https://github.com/vllm-project/vllm/pull/59347 (commit
5f30fc7031cae49bf51073fc953d419b08f8887c) to the pinned vLLM v0.28.0 patch series.The fix reports receive completion only when all pull replies have arrived and at least one local block group is nonempty. Producer cleanup and normal KV transfers remain unchanged. The patch also includes the upstream regression tests for empty, all-empty, and nonempty block lists.
Test
Validated on eight S5000 GPUs with Qwen3-8B BF16, TP4 prefill + TP4 decode, and Mooncake RDMA in eager mode. Before the fix, the first cleanup trigger reproduced the original assertion and subsequent generation returned HTTP 500. After the fix, 20 identical triggers produced zero assertions or false receive completions; all 20 following generation requests returned HTTP 200. All six normal post-fix transfers passed, with generated text identical to the baseline. CPU replay regressions: 21 passed; patch-maintenance tests: 41 passed.