← Back to Pull requests

fix: backport Mooncake empty-pull completion guard #322

Closed
unknown closed this pull request without merging on Nov 05, 2026 10:48 UTC
View on GitHub
unknown unknown commented on Nov 05, 2026 09:26 UTC
Author

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.requests and 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.

Diff: 169 lines (+126 / -43) across 2 files Reviewer: yeahdongcn Review duration: 82m
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
0.40
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 40.2% (MEDIUM) · Higher = larger blast radius
40.2%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.5% · Lower = rushed or shallow review
60.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 15.9% · Safe to merge
15.9%