Skip to content

client: a store read error in the unit watchdog is blamed on the source as a stall #2213

Closed

Description

@thiras

Summary

A store read error during the multi-source unit watchdog is reported as a stall, and the source is blamed for it. The real I/O error is lost.

Found in the review of #2212. The behaviour predates that PR; #2212 only rewrote the doc.

Where

  • missing_bytes (crates/client/src/scheduler.rs) maps Err(_) from store.missing_ranges to u64::MAX.
  • watchdog reads that as "bytes still missing" and trips when the window's verified counter has not moved. The worker then records UnitOutcome::Faulted(None) with no error, and LaneFault::describe prints "no verified progress within the unit deadline".

Failure scenario

A local disk or read fault lands during a quiet window. A healthy peer is retired as stalled, and its range is reassigned. By default the CLI installs no tracing subscriber, so nothing records the I/O error.

Expected

missing_bytes returns Result. On Err the watchdog resolves with the error, and the unit ends as Faulted(Some(err)). A local disk fault there should also classify as the fetch's own error, not the peer's.

Activity

  1. added
    kind:bug
    on Sep 28, 2026
  2. self-assigned this
    on Sep 28, 2026
  3. added
    rust
    area:cli
    prio:low
    on Sep 28, 2026
  4. removed their assignment
    on Sep 28, 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:bugprio:lowrust

Type

No type

Fields

Priority

None yet

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions