Repository navigation
Description
Found while working on #2673.
Failure. crates/e2e/tests/peer_store_probeless.rs, journey 2:
Error: fetch #2 probed the holders 2 time(s)
(also seen with 3). The check is probes == 0 over decdn_probe_requests_total plus decdn_probe_rate_limit_rejected_per_peer_total on the three holders, across fetch #2.
Rate. Main's unmodified test file failed 3 of 6 local runs, so this is not caused by #2673. It also fails intermittently on the branches of #2673 and #2674. Fetch #2 is a file download, a path neither PR touches.
What I saw. I have no log from a failing fetch #2. In a fast-path streamed fetch in the same test (journey 3 on #2673, RUST_LOG=decdn_client=debug), the fetch started on the store fast path with no probe round, then logged a second round during the transfer: probe answered × 3, then discovered 3 node(s), after lane starts. If fetch #2 runs the same mid-fetch discovery, the count depends on whether those probes reach the holders before the process exits. That would make probes == 0 racy by construction. Unconfirmed.
store_fast_path (crates/client/src/targets.rs) itself issues no probe. Two candidates:
- a discovery round during the fetch (the first open's discovery in
LaneSources, or the acquire loop's rediscovery) - fetch docs: Generalize architecture to content-agnostic CDN, refocus slashing on bad edges #2 falling to the identity-fresh re-probe branch when a peer record is not selectable
Ask.
- Capture
RUST_LOG=info,decdn_client=debugstderr from fetch docs: Generalize architecture to content-agnostic CDN, refocus slashing on bad edges #2 in a failing run, and find which path probes. - Then decide: if the fast path should truly issue no probe for the whole fetch, fix the client. If a later discovery round is intended, scope the assertion to the pre-transfer window, e.g. no
probe_start_msin thefetch timingsevent, which journey 3 already uses.
Repro.
cargo build -p decdn-cli -p decdn-node
for i in 1 2 3 4 5 6; do
cargo nextest run -p decdn-e2e --features anvil-e2e --retries 0 -E 'binary(peer_store_probeless)'
done🤖 Generated with Claude Code
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Projects
- StatusShow more project fieldsDone
Activity
fix(client): skip rediscovery while a full-coverage set's lanes are s…