Skip to content

bundle pull: several proxies stall stripe legs for 30 s at once with no node-side fault #2211

Closed

Description

@thiras

Summary

During a bundle pull, several proxies stall the client's stripe legs for 30 s at once (upstream stalled: no progress for 30s), and the client drops each one. The node side shows no fault. The leading hypothesis is on the client: a leg's reader is starved while ingest waits on checkpoint durability, and the stall floor counts that time against the provider. Not proven.

Evidence (testnet, 2026-09-28, CLI and fleet on 8886c85c)

The client WARNs for entry 7cbb4846…:

Time (UTC) Provider Warning
07:47:54 fra1 0xa43d… left the stripe
08:07:42 nbg1 0x6B82… left the stripe
08:08:22 — a concurrent gap of the same range set also failed
08:08:26 lon1 0x797e… left the stripe

The 06:19–06:22 run had the same pattern: three providers in 3 minutes.

Node side, no fault found:

  • fra1. Its only failure in the window is serve_stream_client_abandoned / node_pull_through_client_abandoned. A concurrent fra1 leg of the same hash completed normally at 07:47:45–48 (trace f274c9e6…).
  • nbg1. No node_pull_through_wait_seconds pause over 30 s in the run, and no WARN in Loki.
  • lon1. The only span (4acd40a2…, a 5 MB leg) starts exactly 30 s before the fault and ends server-side after 2.9 s as completed.
  • bcl. Only client_declined and client_abandoned. Signer-cap, pool-exhausted, voucher-rejected and proof-budget counters are 0. No buyer top-ups on any proxy.

Hypotheses (not confirmed)

  1. Client read starvation.
    • read_under_floor (crates/client/src/lib.rs:3145-3178) samples only while next_chunk is polled.
    • ingest_stream blocks when INGEST_MAX_QUEUED_CHECKPOINTS (3) are not yet durable (crates/client/src/ranged_store.rs:524).
    • Several multi-GB entries were being written at once (sys time 3m44s). This fits several providers stalling together, and lon1 completing server-side.
  2. A proxy pull pause that never wakes, ended by the client just under 30 s. Serve-demand liveness only looks within one chunk group of the pull frontier (crates/client/src/pacer.rs:321-346).
  3. An Attach claim paced by another payer's stream. No counter exists for attaches.

Next step

  1. Log each client leg: provider, byte_offset, byte_len, open time, and cumulative / expected wire bytes at the stall. Also log the time ingest_stream waits on checkpoints.
  2. Rerun the pull.
  3. For one stalled leg, find the proxy's serve_stream with the same byte_offset. If it completed or never paused, the cause is on the client (hypothesis 1).

Blocked in part by the Tempo span loss (#2210).

Related

#2205, #2210

Activity

  1. added
    kind:bug
    area:cli
    on Sep 28, 2026
  2. assigned and unassigned on Sep 28, 2026
  3. thiras commented on Sep 28, 2026

    @thiras
    ContributorAuthor

    A node-side candidate for these stalls is #2222. Proxy pulls for concurrent stripes of one blob stall after a few floor-sized legs, because serve demand is a single hash-wide max. The serve then waits on the pull until the client stops it at about 40 s. It was seen on fra1 and nbg1 on 2026-09-28 (traces in #2222). This goes against the "no node-side fault" reading above: pull still paused does not fire, because the pause restarts whenever the shared demand moves.

  4. altanoruc commented on Oct 1, 2026

    @altanoruc
    Contributor

    A 21 s client-side silence, then 12 lanes on 3 nodes fault at once with no node-side fault (2026-10-01, CLI ef4bb891)

    This is from a 24-run batch (VPN off, all runs rc=0), run 13 (SDXL).

    Client log. The last line before the gap is at 01:50:23.199 (a discovery). The next is at 01:50:44.109, so nothing was logged for 21 s. Over the next 34 s, 12 lanes on fra1, bcl and nbg1 fault across 4 blobs:

    time provider blob landed error
    01:50:44 fra1 (×2) 5aee6bda… 8.3 MB, 2.1 MB no terminal signal after the voucher write failed; recovery read failed … early eof
    01:50:45 bcl 1b9b95e9… 720.7 MB no verified progress for 10s
    01:50:46 bcl 5aee6bda… 5.2 MB no terminal signal after the voucher write failed …
    01:50:48 fra1 11e20da0… 62.7 MB no terminal signal after the voucher write failed …
    01:50:48 nbg1 5aee6bda… 12.5 MB no terminal signal within 5s of the voucher write failing
    01:50:49 nbg1 d4b89247… 5.3 MB no terminal signal after the voucher write failed …
    01:50:53 nbg1 11e20da0… 131.6 MB no terminal signal after the voucher write failed …
    01:51:01–18 bcl d4b89247…, 11e20da0…, 1b9b95e9…, 5aee6bda… 0–10 MB no verified progress for 10s

    Node side. For fra1, bcl and nbg1 between 01:50:15 and 01:51:25, Loki has no WARN or ERROR. The only matching lines are the eth_getLogs window failed … error code 19 retries from #2253.

    Many providers fault at once after a client-side logging gap, and the nodes see nothing. That fits the client-starvation hypothesis above better than any node-side cause. Smaller versions of the same shape: run 8 at 23:14:31–54 (7 bcl lanes, 4 blobs, all within 23 s), and run 7 at 22:57:43–51 (fra1 and nbg1, 3 lanes).

    🤖 Generated with Claude Code

  5. self-assigned this
    on Oct 1, 2026
  6. thiras commented on Oct 2, 2026

    @thiras
    ContributorAuthor

    Fixed by #2274, together with #2272, #2287 and #2273.

    If a live pull shows the stall again, look for the bundle task was not polled in the client log and reopen.

  7. moved this from Backlog to Done in deCDNon Oct 2, 2026
  8. altanoruc commented on Oct 2, 2026

    @altanoruc
    Contributor

    Recurs on c2fae664 (after #2274): watchdog trips on several providers within one second, and the "not polled" WARN does not fire

    Mistral bundle pull (--hash 9194000d…af69e5), same client as above, 2026-10-02. The CLI was built from c2fae664, which includes #2274, #2272 and #2293. The fleet is unchanged.

    run (UTC) network no verified progress for 10s faults largest one-second cluster
    2 (11:50–12:09) VPN connected, host routes keep decdn on Wi-Fi; no VPN state change during the burst 60 7 legs, 3 providers at 11:53:56.67
    4 (12:54–13:04) VPN off 36 9 legs, 4 providers at 12:56:30.37
    5 (13:04–13:14) VPN off 0 —

    Run 4 is the clean case. The run went through Wi-Fi with no VPN. All 36 faults landed between 12:55:11 and 12:57:4x, plus one at 13:01. They came in three clusters:

    • 12:55:11.00: 5 legs, fra1 0xa43d… and nbg1 0x6B82…, 6 ms apart.
    • 12:55:21.01: 4 legs, ash1 0xDb0E… and hel1 0xEE08….
    • 12:56:30.37: 9 legs, bcl 0xAFb6…, nbg1, ash1 and hel1.

    Every leg had already landed bytes. One example: offset=2281701376 len=536870912 landed=49086464 uncovered=false fault=Source.

    What #2274's diagnostics show:

    • No the bundle task was not polled WARN in any of the 6 runs.
    • No phase="first_frame" stall line either.
    • Client log silent for 25.4 s just before the first cluster (12:54:45.6 → 12:55:11.0). At -v the log is often quiet for 5–25 s, so this is weak evidence.

    Node side:

    • No faults in the window. Over the whole batch (11:28–13:33) the only node WARNs are handshake aborts (73), invalid handshake (22), accept_bi failed: closed by peer (8), multiplexed poller tick error (4), one nbg1 probe request read failed, and one lon1 probe write connection lost. In 12:54–12:58 there are two handshake aborts at 12:57:13, which matches no cluster.
    • Fleet egress was low during the burst. The 2-minute rate of sum(decdn_bytes_served_total) was 20–25 MB/s during 12:55–12:57. It was 35–45 MB/s in 12:58–13:00, and 35–41 MB/s in run 5, which had no faults.

    Open question: when every lane stops at the same moment, either the client stopped reading or the client's link dropped for about 10 s. The current logs cannot tell these apart. A client-wide counter would decide it: bytes received on all lanes in the 10 s before a trip, logged next to the fault. If the counter is 0, the link dropped. If bytes kept arriving, the reader starved.

    🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:clikind:bug

Type

No type

Fields

Priority

None yet

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions