Repository navigation
In review
Labels
area:clientdecdn-client SDK: paid pull, lanes, buyer poolkind:featureNew capability or a change to current behaviorrustDependabot: a Cargo update; use area: labels for Rust code otherwise
Description
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.
- Lane builds that keep failing stay at DEBUG.
crates/client/src/scheduler.rs("lane build failed") andcrates/client/src/first_open.rslog every build fault at DEBUG.lane_builtretries with a 1 s to 30 s backoff and no limit (source_set.rsBUILD_RETRY_CAP). With no stop limit,Stop::expirednever 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. - A persistent
TopUpFailedstays at INFO.classifymakes itFault::Transient. A transient fault keeps the source's health (health.rs), and nothing escalates it. - 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 runsdecdn-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 toGaveUpas context. - Escalate a repeated
TopUpFailedto 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.
Metadata
Metadata
Assignees
Labels
area:clientdecdn-client SDK: paid pull, lanes, buyer poolkind:featureNew capability or a change to current behaviorrustDependabot: a Cargo update; use area: labels for Rust code otherwise
Type
Fields
Priority
None yet
Projects
- StatusShow more project fieldsIn progress
Activity
yigitdot commentedon Oct 8, 2026
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 throughFault::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_faultalready 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.