Skip to content

fix(client): log the holder record on lane-fault lines - #2346

Merged
thiras merged 2 commits into
mainfrom
fix/2339-lane-fault-kind
Oct 6, 2026
Merged

thiras merged 2 commits into
mainfrom
fix/2339-lane-fault-kind

Conversation

@thiras

@thiras thiras commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

What

The client's a lane faulted and a source faulted lines now include the provider's record in the source set at the time of the fault:

  • probed_holder
  • coverage, written as block runs (for example 0,2-3), or whole blob when no coverage was measured.

#2339 read uncovered=false on hel1's refusals to mean the refusals were inside the coverage hel1 advertised. They weren't. The scheduler gives a lane built without measured coverage the whole blob (coverage.unwrap_or_else(|| Coverage::full(..))). That covers a pinned holder, and also a provider the probe did not report as a holder (a proxy, pull-through or peer-store candidate). On those lanes uncovered is always false. The LaneRange::uncovered doc now says so.

Refs #2339.

Rerun on the fleet with #2345 (2026-10-06, CLI and fleet on cdf8ece3's tree)

Bundle Result Client lane faults hel1 refusals
SDXL 29m12s, 0 failed, 45.7 GB downloaded → 76.9 GB reconstructed 1 1
gpt-oss (no --exclude) stopped by hand at 11m43s, 41 GB, in the bcl-only tail of baa10b83 0 0

In #2339's batch, hel1 refused 4–26 distinct ranges per blob per run. This rerun had one hel1 refusal: a 336 KB range of 503f0183…, 5 s into SDXL, path=pull_leg_miss cause=clean_miss.

hel1 served 7 legs of gpt-oss without a refusal, including 2 on baa10b83…, the blob it refused 26 times in the issue's run 6.

Across the run windows, every remaining refusal fleet-wide matches an upstream probe miss:

Node decdn_node_pull_unreachable_total Refusals
hel1 +1 1 (this run)
fra1 +6 6 coverage_gate candidates=2 refusals at 21:26:41–44, all for another client (pool 0xdb5db1…)

So #2345 removes the sustained pattern. Single probe misses still happen at a low rate. If they grow, the next lever is ADR 001's PROBE_TIMEOUT.

Reviewer notes

  • Log-only change. scheduler::block_runs becomes pub(crate) so source_set.rs can reuse the format that the lane starts line already prints.
  • The first commit logged a lane_kind enum string instead. Review showed two problems with it:
    • Every probed holder carries measured coverage, so a whole-blob holder would have read partial_holder.
    • The record can change on rediscovery after the lane starts.
      Logging the raw record avoids both, and the doc says the record is read when the fault is logged.
  • The an extra stream of a lane faulted line in scheduler.rs stays as it is: it has no Holder in reach.
  • No public API change, so no snapshot change.

Verification

  • cargo fmt -- --check
  • cargo clippy -p decdn-client --all-targets --all-features -- -D warnings, plus the workspace clippy pre-commit hook
  • cargo nextest run -p decdn-client: 585 passed. the_lane_fault_line_names_the_holder_record asserts a non-holder lane, a partial holder's lane, and the a source faulted line.
  • RUSTDOCFLAGS="-D warnings" cargo doc -p decdn-client --no-deps --document-private-items
  • User-visible change: CHANGELOG.md entry (not added: this only adds fields to an info log line)

🤖 Generated with Claude Code

`uncovered=false` on "a lane faulted" read as "inside the node's
coverage" in #2339, but a lane with no measured coverage (a whole
holder, or a non-holder serving by pull-through) covers the whole blob,
so the flag is always false there. The line now carries `lane_kind`
(`partial_holder`, `whole_holder`, `non_holder`, `unknown`), and the
`LaneRange::uncovered` doc says the flag means nothing outside a
partial holder's lane.

Refs #2339

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 6, 2026 21:31
@thiras thiras self-assigned this Oct 6, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The diagnostic mapping is correct, with no blocking issues in this narrowly scoped change.

Review effort: Balanced
Findings: None

What changed in this PR

Improves client fault diagnostics to clarify the coverage interpretation behind #2339 without changing scheduling or public APIs.

Changes:

  • Adds lane_kind to lane and source fault logs.
  • Clarifies the meaning of uncovered=false.
  • Adds a regression test for logged lane kinds.
File Description
crates/​client/​src/​source_set.rs Adds lane-kind labels, coverage documentation, and log assertions.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Review of #2346: every probed holder carries measured coverage, so a
whole-blob holder logged `lane_kind="partial_holder"`, and the record
can change on rediscovery after the lane starts. The fault lines now
carry `probed_holder` and the record's `coverage` as block runs
(`whole blob` with none measured), and the docs say the record is read
when the fault is logged. The test also covers the `a source faulted`
line.

Refs #2339

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-code-quality

github-code-quality Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Code Coverage Overview

Languages: Rust

Rust / code-coverage/cargo-llvm-cov

The overall line coverage in commit b5e4314 in the fix/2339-lane-fault-... branch remains at 88%, unchanged from commit cdf8ece in the main branch.

Show a line coverage summary of the most impacted files.
File main cdf8ece fix/2339-lane-fault-... b5e4314 +/-
crates/client/src/lib.rs 92% 92% 0%
crates/client/src/streamer.rs 91% 91% 0%
crates/client/s...c/source_set.rs 97% 97% 0%
crates/node/src...gin/pull_leg.rs 91% 91% 0%
crates/protocol/src/framing.rs 97% 97% 0%
crates/incentiv...eth_identity.rs 98% 99% +1%

Updated October 06, 2026 21:49 UTC

@thiras thiras changed the title fix(client): name the lane kind on the lane-fault line fix(client): log the holder record on lane-fault lines Oct 6, 2026
@thiras
thiras merged commit a35e7c9 into main Oct 6, 2026
30 checks passed
@thiras
thiras deleted the fix/2339-lane-fault-kind branch October 6, 2026 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants