Skip to content

bundle pull: failed providers are never retried within an entry, and the final candidate failure is logged silently #2118

Closed

Description

@thiras

Symptom

In a testnet decdn bundle pull (gpt-oss, ~27.5 GB), all three large shards failed on fra1 and lon1 at 17:28–17:29 UTC and ended up on bcl, the last candidate in each list. For the remaining 23 minutes fra1 and lon1 served 0 bytes (Prometheus decdn_bytes_served_total) while two big entries were still unfinished. model-00000 (24823b…) then stopped growing at 17:45:39 at 3.33 of 4.79 GB. The client printed no WARN.

Root cause

  • Each entry makes one pass over its candidates. probe_and_order builds the list (crates/cli/src/commands/bundle_pull.rs:1581 plain path, :1845 dedup path), and the loop never revisits a candidate (:1633-1661, :1887-1912). No outer retry exists.
  • The last failure is silent. When the last candidate fails, !more returns Err without the tracing::warn! that earlier failovers log (:1650, :1900). The error only surfaces in the end-of-run summary, so a long run shows nothing until it ends.
  • Early, recoverable failures shrink the pool for good. Failures such as a transient client stall (client-pull: blocking fsync on the tokio runtime stalls voucher sends; nodes drop every stream with 'proof read timed out after 10s' #2117) or early eof remove healthy providers from the list for the rest of the entry. Once the last provider fails, the entry is lost for the whole run.

Candidate fixes

  • A. Log a WARN (with provider and error) when an entry exhausts its candidates.
  • B. Add a bounded outer retry for failed entries. It re-probes, re-admits previously failed providers after a backoff, and resumes from the .partial prefix.
  • C. Mark a candidate as "cooling down" instead of dropping it for good, so a later leg can return to it.

🤖 Generated with Claude Code

Activity

  1. added
    kind:bug
    area:cli
    on Sep 22, 2026
  2. self-assigned this
    on Sep 22, 2026
  3. moved this from Backlog to In progress in deCDNon Sep 22, 2026
  4. moved this from In progress to Ready in deCDNon Sep 22, 2026
  5. assigned and unassigned on Sep 22, 2026
  6. moved this from Ready to In progress in deCDNon Sep 22, 2026
  7. moved this from In progress to Done in deCDNon Sep 22, 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: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