Repository navigation
fix(client): log the holder record on lane-fault lines - #2346
Merged
Merged
Conversation
`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]>
There was a problem hiding this comment.
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_kindto 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]>
Code Coverage OverviewLanguages: Rust Rust / code-coverage/cargo-llvm-covThe overall line coverage in commit b5e4314 in the Show a line coverage summary of the most impacted files.
Updated |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The client's
a lane faultedanda source faultedlines now include the provider's record in the source set at the time of the fault:probed_holdercoverage, written as block runs (for example0,2-3), orwhole blobwhen no coverage was measured.#2339 read
uncovered=falseon 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 lanesuncoveredis alwaysfalse. TheLaneRange::uncovereddoc now says so.Refs #2339.
Rerun on the fleet with #2345 (2026-10-06, CLI and fleet on
cdf8ece3's tree)--exclude)baa10b83In #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:
decdn_node_pull_unreachable_totalcoverage_gate candidates=2refusals at 21:26:41–44, all for another client (pool0xdb5db1…)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
scheduler::block_runsbecomespub(crate)sosource_set.rscan reuse the format that thelane startsline already prints.lane_kindenum string instead. Review showed two problems with it:partial_holder.Logging the raw record avoids both, and the doc says the record is read when the fault is logged.
an extra stream of a lane faultedline inscheduler.rsstays as it is: it has noHolderin reach.Verification
cargo fmt -- --checkcargo clippy -p decdn-client --all-targets --all-features -- -D warnings, plus the workspace clippy pre-commit hookcargo nextest run -p decdn-client: 585 passed.the_lane_fault_line_names_the_holder_recordasserts a non-holder lane, a partial holder's lane, and thea source faultedline.RUSTDOCFLAGS="-D warnings" cargo doc -p decdn-client --no-deps --document-private-itemsCHANGELOG.mdentry (not added: this only adds fields to an info log line)🤖 Generated with Claude Code