Skip to content

e2e: peer_store_probeless fetch #2 intermittently counts holder probes #2677

Closed

Description

@thiras

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:

Ask.

  1. Capture RUST_LOG=info,decdn_client=debug stderr from fetch docs: Generalize architecture to content-agnostic CDN, refocus slashing on bad edges #2 in a failing run, and find which path probes.
  2. 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_ms in the fetch timings event, 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

Activity

  1. added
    kind:bug
    kind:test
    area:cli
    prio:low
    on Oct 28, 2026
  2. self-assigned this
    on Oct 28, 2026
  3. moved this from Backlog to In progress in deCDNon Oct 28, 2026
  4. added a commit that references this issue on Oct 28, 2026
    8b64fb6
  5. moved this from In progress to Done in deCDNon Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:clikind:bugkind:testprio:low

Type

No type

Fields

Priority

None yet

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions