Skip to content

High-rate node-to-node pull fails deterministically; blocks un-ignoring node_pull_topup e2e (#1598) #1893

Closed

Description

@alpergundogdu

Split out from #1598 (landed in #1892). The reactive-mid-pull-top-up e2e crates/e2e/tests/node_pull_topup.rs is committed but #[ignore]d because it surfaced a separate daemon issue: a high-rate node-to-node pull fails deterministically. This issue tracks fixing that so the e2e can be un-ignored.

Symptom

With the #1892 dead-charge fix in place, the e2e's node-to-node warm-up completes, but the deposit-exhausting fetch never succeeds: the server misses and its node-to-node pull of the ~9 MiB blob from the seeder clean-misses on every attempt, so the client is refused NotFound (decdn_serve_stream_rejected_cache_miss) every time. A ~90 s / ~160-attempt retry loop never lands a single success.

Localized by elimination (vs the passing node_to_node_coalesce)

node_to_node_coalesce pulls node-to-node successfully on the same host and fixture at the default ~10 µUSDC/MB rate. Against that control:

  • NOT environmental — node_to_node_coalesce passes here.
  • NOT flakiness / connectivity — deterministic (never lands in ~160 retries); forcing the daemon endpoint to RelayMode::Disabled removes the incidental non-loopback AddrNotAvailable dial noise without changing the outcome (so that noise was a red herring).
  • NOT the top-up / deposit / exhaustion — an ample 20 USDC working deposit (blob well within it, no top-up needed) fails identically; decdn_node_pull_reactive_topup{,_refused} never move.
  • NOT a seeder refusal, buy-margin, warming allowance, blob-size gate, or voucher rejection — every corresponding reject/refuse counter on both nodes stays flat (only a single startup pool-view-lag unknown_lane).

The one systematic difference: rate

The scenario must price at ~0.5 USDC/MB. This is intrinsic, not incidental: the seeder-side refundable floor M (default 1 USDC) forces the working deposit above ~1 USDC, and only an elevated per-MB rate lets a sane-sized blob's wire cost exceed that deposit to trigger the reactive branch at all. So the high rate cannot be designed around — something on the high-rate node-to-node pull path deterministically fails where the default-rate path does not.

Why it wasn't pinned further

The subprocess daemon's debug/trace pull-leg logs do not surface through the e2e harness (RUST_LOG via DECDN_NODE_LOG and config log_level were both ineffective in practice; only WARN comes through reliably). The ~112 clean-misses take a PullMiss::Clean path that does not go through classify_pull_failure (only 1 such log appeared), i.e. a silent server-side pull-setup fold.

Suggested first step

Land daemon-side pull-leg instrumentation so the Clean-miss path is attributable — e.g. a per-reason decdn_node_pull_clean_miss{reason} counter (or WARN-level breadcrumbs) at each PullMiss::Clean return in crates/node/src/node_origin/pull_leg.rs and open_pull_leg. One instrumented run then pins the exact failing step, after which the fix should be small, and node_pull_topup can drop its #[ignore].

The e2e's own doc comment carries this same elimination for whoever picks it up.

Activity

  1. added
    rust
    kind:test
    on Sep 1, 2026
  2. moved this from Backlog to Ready in deCDNon Sep 1, 2026
  3. self-assigned this
    on Sep 14, 2026
  4. moved this from Ready to In progress in deCDNon Sep 14, 2026
  5. moved this from In progress to Done in deCDNon Sep 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind:testrust

Type

No type

Fields

Priority

None yet

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions