Repository navigation
UCP/FT: Fail p2p endpoints during initial wireup. - #12372
Conversation
Skip the opening flush on WIREUP variants so the first operation can still be in wireup, and accept an endpoint failure there.
The operation before injection completed wireup, so invalidate ran on an already connected endpoint. Run that operation only for non-WIREUP variants. Use EXPECT in the bool helper because ASSERT returns void.
The wireup stub interface returns no-resource for ep_invalidate, so a failure cannot be injected while the lane is still proxied.
An initiator invalidate reaches an RC endpoint that is not connected yet and asserts in am_bcopy. Keep the pre-injection flush and operation for the initiator.
Lane invalidation completed the handshake first. Target WIREUP|AM drops the receiver before any wait and expects the sender error callback.
Failover cannot rebuild lanes before the p2p handshake completes. Fail the endpoint on that error, skip recovery until REMOTE_CONNECTED, and probe the wireup-msg aux so keepalive can detect a dead peer.
|
🤖 Starting review — findings will be posted here when done. |
|
Coverage gap: Coverage gap: the new variant is RC-only and target-side only; initiator-side failure during wireup is explicitly skipped, so that half of the behavior change in |
|
🤖 CI Triage Agent — TL;DR: The new gtest Full analysisSummary: gtest shard 0 of the Root cause: NULL pointer dereference in the worker keepalive path. Backtrace:
ucp_lane_index_t lane = ucp_ep_config(ep)->key.keepalive_lane;
uct_ep_h uct_ep = ucp_ep_get_lane(ep, lane);
ucp_wireup_ep_t *wireup_ep = ucp_wireup_ep(uct_ep); /* <-- uct_ep may be NULL */
Implicated commit: [REDACTED:Hex High Entropy String] — "UCP/FT: Fail p2p endpoints during initial wireup." (Evgeny Leksikov); the keepalive aux-probe helper was introduced earlier in db208ee ("UCP/FT: probe-gated lane recovery via aux uct_ep_check"). File: src/ucp/core/ucp_worker.c:3735 ( Suggested fix: Guard the keepalive path against a lane with no UCT endpoint:
ucp_worker_keepalive_uct_ep(ep, &lane, &uct_ep);
if (uct_ep == NULL) {
ucs_trace("ep %p: keepalive lane %u has no uct_ep, skipping", ep, lane);
goto out_done; /* advances keepalive.iter */
}
Related: PR #12372 (#12372); prior keepalive/wireup FT work: #11563 (db208ee), #12184, #12183 — no existing issue found for this crash.
|
The aux-probe helper must not call ucp_wireup_ep() on a NULL lane; advance the keepalive iterator so that case is skipped.
|
🤖 Starting review — findings will be posted here when done. |
|
🤖 CI Triage Agent — TL;DR: Full analysisSummary: Gtest run on "althca on worker 2" ended with Root cause: The 10021 ms runtime is the signature of one The branch (
Implicated commit: File: Suggested fix: Only forward the invalidate when the wireup lane's inner EP is actually connected, e.g. in Related: PR #12372 (this branch); prior FT/recovery work: #12184, #11988 (worker flush hang from recovery wireup ep), #11562/#11563 (lane recovery infrastructure).
|
WIREUP tests destroy the peer instead of injecting uct_ep_invalidate, and token failover already skips wireup_ep.
These prints were added while tracing initial failover wireup.
Call get_lanes before the warmup send so tcp (one AM lane) skips instead of timing out the pattern check.
|
🤖 Starting review — findings will be posted here when done. |
|
Residual coverage note (already raised in the earlier review): the initiator side of the new |
|
🤖 CI Triage Agent — TL;DR: The build failed on a single UCT-level atomic test, Full analysisSummary: AddressSanitizer "roce on worker 3" gtest run ended with Root cause: From the log, the whole 2217-second suite ran to completion with continuous output (no hang, no sanitizer report, no timeout), and only one assertion-level failure was reported at tear-down. The failing case is a pure UCT fetch-and-add correctness test ( Implicated commit: Not PR #12372 ( File: test/gtest/uct/test_amo.cc ( Suggested fix: Re-trigger the "AddressSanitizer roce" job on PR #12372 — the PR's UCP wireup changes cannot affect a UCT
|
An aux endpoint error after the peer address is not a fatal initial handshake failure. Fail the endpoint only when the UCT endpoint is not aux-owned. Hold the target wireup test in that window until the error callback runs, and look up RMA lanes only after flush completes the handshake.
|
🤖 Starting review — findings will be posted here when done. |
|
The keepalive Residual coverage: earlier coverage notes (RC-only, target-side-only, |
Destroying the receiver worker fails every sender endpoint, so the wireup test must wait for the injected endpoint's callback.
|
🤖 Starting review — findings will be posted here when done. |
|
Residual coverage concerns: the new test is RC-only and target-side only, |
|
decided leave this PR as is, because my comments are mostly about code style. Will handle them in follow-up PRs |
…defs. - Keep the UCX 1.24 failover version local to failoverErrHandlingMode() and derive defaultErrHandlingMode() from it with value_or(PEER). - Add isFailoverErrHandlingMode() so callers do not need the ifdef. - Pass the backend error-handling mode to nixlUcxContext and disable IB_INDIRECT_ATOMIC only when that mode is failover, instead of re-checking the UCX version there. - Point the LoadRemoteThenFail peer override at openucx/ucx#12372.
|
🤖 CI Triage Agent — TL;DR: The ASan/LeakSanitizer gtest run failed with 68 KB leaked in 17 allocations, all rooted in Full analysisSummary: Root cause: Every leak stack ends in
Nothing from the test body appears, and no The branch under test is Implicated commit: [REDACTED:Hex High Entropy String] (PR #12372, branch File: src/ucp/core/ucp_ep.c:931 ( Suggested fix:
Re-run the ASan BlueField job after fixing — if Related: PR #12372 (this change); context for the affected test: commit 6f2c2dd "UCP/GTEST: Fix expected rkey config count in port speed change test". No existing issue found for this leak signature.
|
Keep the wireup fault-tolerance variant next to the AM message-size variants added on master.
585e698
|
🤖 Starting review — findings will be posted here when done. |
What?
UCP/FT: Fail p2p endpoints during initial wireup.
Why?
Failover cannot rebuild lanes before the p2p handshake completes.
How?
Fail the endpoint on that error, skip recovery until REMOTE_CONNECTED, and
probe the wireup-msg aux so keepalive can detect a dead peer.