Skip to content

client: persistent chain-side faults never reach WARN #2371

In review

Description

@yigitdot

Problem

#2370 logs lane faults at WARN when a source fails (Fault::Source) or a fault is fatal. Chain-side faults stay below WARN. That is correct for one retry. It is wrong when the fault persists. A log monitor that filters on WARN and ERROR then sees a silent hang.

  1. Lane builds that keep failing stay at DEBUG. crates/client/src/scheduler.rs ("lane build failed") and crates/client/src/first_open.rs log every build fault at DEBUG. lane_built retries with a 1 s to 30 s backoff and no limit (source_set.rs BUILD_RETRY_CAP). With no stop limit, Stop::expired never ends the fetch. With a limit, GaveUp { idle } drops the last build fault. An RPC outage during pool open or reuse shows only "a queued range waits for a stream" at INFO.
  2. A persistent TopUpFailed stays at INFO. classify makes it Fault::Transient. A transient fault keeps the source's health (health.rs), and nothing escalates it.
  3. No throttle on provider-triggered WARN lines in the client. adr/appendix-observability.md (per-cause throttle on peer-triggered warnings) covers inbound request lines on the node. The daemon's upstream leg runs decdn-client, so a remote provider now triggers the lane-fault WARN lines. Only the per-provider cooldown bounds them (2 s doubling to 60 s).

Proposal

  • Escalate a build fault to WARN after N consecutive failures per provider, or when the backoff reaches BUILD_RETRY_CAP. Attach the last build fault to GaveUp as context.
  • Escalate a repeated TopUpFailed to WARN on the same rule.
  • Decide whether the cooldown is enough of a bound on client WARN lines. Then either document that in the observability ADR or add a per-cause throttle.

Activity

  1. added
    kind:feature
    rust
    on Oct 8, 2026
  2. self-assigned this
    on Oct 8, 2026
  3. removed their assignment
    on Oct 8, 2026
  4. yigitdot commented on Oct 8, 2026

    @yigitdot
    ContributorAuthor

    One more candidate: the extra-stream refusal rule (reverted from #2370)

    What it changed. log_extra_fault (crates/client/src/scheduler.rs) logs an extra stream's fault at DEBUG when no bytes landed. The rule narrowed that: DEBUG only when the error is a refusal (UpstreamRefused) and nothing landed. Any other fault followed its class through Fault::warns. A watchdog stall (no verified progress for …) or an early EOF before the first byte would then reach WARN.

    Why it was reverted from #2370. #2331 did not ask for it. The stalls that #2331 describes come from a lane's own stream, which record_fault already logs at WARN. The rule came from a review suggestion, so it was out of scope for that PR.

    WARN-noise risk. Extra streams are speculative. They often fail before their first byte for routine reasons: a per-signer live cap, load shedding, or a stream torn down when its range is stolen or cancelled. Some of these do not arrive as UpstreamRefused. The rule could then flood WARN with lines that need no action. That would undo what #2331 tries to do for a WARN-filtered monitor.

    Before you implement it: first check that the rule is still valid. Look at real pull logs to see how often extra streams fault before their first byte, and why. Implement it only if those faults show a problem an operator must act on, and they are not mostly routine.

  5. added
    area:client
    on Oct 21, 2026
  6. self-assigned this
    on Nov 26, 2026
  7. moved this from Backlog to In progress in deCDNon Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:clientkind:featurerust

Type

No type

Fields

Priority

None yet

Projects

  • Status
    In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions