UCP/PROTO: Repost an AM short as bcopy if it is too long for the lane #12462
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 · 280 lines diff across 3 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.337
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #12462"
general
weight: 0.35
tvegas1
What?
With token failover, repost an AM short as AM bcopy when it is longer than
the repost lane takes as AM short.
Why?
The purge of a failed lane reports an AM short with the length that this lane
took, and the repost protocol posted it again with
uct_ep_am_short()on itsown lane. rc_mlx5 takes an AM short of up to about 2 KB with device memory, and
of up to about 230 bytes without it. Device memory is allocated per worker and
device and may be unavailable, so when the failed lane had it and the repost
lane did not, the repost failed and the AM was lost. Without parameter checks,
rc_mlx5 builds an inline WQE larger than the maximal WQE size instead.
Since #12371 enabled AM short on failover endpoints, the 1 KB AM variants of
test_ucp_fault_tolerance_tffail on it on some CI hosts, for example:roce on worker 3 (swx-rain03-08):
rcx/test_ucp_fault_tolerance_tf.target_failure/14 <rc_x/PUT|AM|FLUSH>roce on worker 1 (swx-rain04-08):
rcx/test_ucp_fault_tolerance_tf.worker_flush_during_recovery/9 <rc_x/AM|MSG_MEDIUM>roce on worker 2 (swx-rain04-09):
rcx/test_ucp_fault_tolerance_tf.teardown_with_outstanding_probe/9 <rc_x/AM|MSG_MEDIUM>How?
When the header and the payload do not fit
cap.am.max_shortof the repostlane, send them with
uct_ep_am_bcopy(), up toucp_ep_get_max_bcopy(). Thepeer receives the same data.
No new test: the existing tests above hit the bug on hosts where the failed
lane has device memory and the repost lane does not.