Repository navigation
Description
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_coalescepasses here. - NOT flakiness / connectivity — deterministic (never lands in ~160 retries); forcing the daemon endpoint to
RelayMode::Disabledremoves the incidental non-loopbackAddrNotAvailabledial 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.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Projects
- StatusShow more project fieldsDone
Activity
test(node): pin warming vindication, cap, and floor under a full start
fix(node): start a source's warming allowance full, per ADR 041 (#2003)
fix(node,cache,client-pull): honour serve demand only at the pull's f…
docs(adr,node,client-pull): qualify the serve-demand bound, raise dem…
fix(client-pull,node): top up before a serving peer's refundable floo…
fix(client-pull,incentive): re-send a topUp that loses its nonce to a…
fix(node,cache): raise serve demand only when the serve leg starves (#…
fix(node,cache,client-pull): unstick the fused serve-miss past the ra…