UCT/UD: Do not complete an endpoint check on a simultaneous CREQ #12409
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.36) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 183 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.312
Real PR Conversation Timeline
1 comments
"Review active on #12409"
general
weight: 0.35
tvegas1
What
An endpoint check on a UD endpoint no longer completes when a simultaneous CREQ from the peer is handled as the ACK of our CREQ. The check now waits for the ACK of our CREP.
Why
A simultaneous CREQ shows only that we received the peer's packet, not that the peer received ours. UCP gates the recovery of a failed lane by such a check on an aux UD endpoint. When a link drops the packets of one side only, the probe of that side completed on the peer's CREQ, so the side put the lane back while its packets were still dropped. The lane then failed again and flapped.
On a NIXL disaggregated-inference test (KV cache PUSH, fault tolerance on, one NIC plane of the prefill node drops its TX traffic), the flapping lane stalled KV transfers for 35-40 s at a time while the drop lasted: -50% to -83% tok/s/GPU. With this fix, throughput during the drop is the same as with KV PULL (187k vs 108k tok/s/GPU before the fix), and no requests fail.
How
uct_ud_ep_rx_creq(): before the incoming CREQ is handled as the ACK of our CREQ,uct_ud_ep_comp_psn_move()moves the completions waiting for our CREQ to the PSN of our CREP.uct_ud_ep_purge()anduct_ud_ep_flush()withUCT_FLUSH_FLAG_CANCELdo not wait for a CREP that is not sent yet, so they move those completions back to the last PSN sent.test_ud.ep_check_simultaneous_creq_tx_lost,test_ud.ep_check_simultaneous_creq_destroyandtest_ud.ep_check_simultaneous_creq_cancel.