Repository navigation
Description
Problem
When a lane faults after a slow-victim steal trimmed it, the WARN line prints the range the lane first picked, not the range it held after the trim. The same line says "its remainder goes to the other lanes". Read together, the line suggests that the stolen tail goes back to the queue and downloads twice. It does not: requeue_missing re-queues only the missing bytes of the trimmed range.
The steal line also has no hash field. A reader must match a steal to a fault by offset arithmetic.
Evidence
SDXL base 1.0 pull, testnet, 2026-10-09, decdn bundle pull --jobs 10 --max-lane-streams 5 -v, binary built from a09720ad. Blob 11e20da082c0ed4724415f3cac5ea5c28b506ca3361211b890ce083dea95e655 (4.78 GiB):
07:34:57.874 INFO stole the tail of a lane's missing remainder stealer=0x797e…c716 (lon1) victim=0xafb6…5832 (bcl) kind="slow_victim" split=4584669184 stolen=173490176 victim_range=Some((4567613440, 17055744)) victim_frontier=4572823552
07:35:17.295 WARN a lane faulted; its remainder goes to the other lanes provider=0xAFb6…5832 hash=11e20da0… offset=4567613440 len=190545920 landed=6275072 past_end=false uncovered=false probed_holder=true coverage=0-76 fault=Source error=no verified progress for 10s
Decoded ranges (half-open, bytes):
| Range | Start | End | Bytes |
|---|---|---|---|
| bcl pick (printed by the fault line) | 4567613440 | 4758159360 | 190,545,920 |
| lon1 stolen tail | 4584669184 | 4758159360 | 173,490,176 |
| bcl held after trim | 4567613440 | 4584669184 | 17,055,744 |
| bcl landed (verified) | 4567613440 | 4573888512 | 6,275,072 |
| re-queued remainder | 4573888512 | 4584669184 | 10,780,672 |
No two fetched ranges overlap. The fault line len=190545920 is the pre-steal pick, which contains the 173,490,176-byte tail that lon1 owns.
Cause
run_workerbuilds the faultLaneRangefromr_start/r_len, the picked range (crates/client/src/scheduler.rs:2576).Work::stealtrims the victim slotin_flight[victim]to end at the split (scheduler.rs:1649).requeue_missingreads the trimmed slot (scheduler.rs:1959) and returnsRequeued { held, bytes }, which the fault path drops (scheduler.rs:2565).
The log line and the re-queue use different ranges.
Proposal
- In the lane-fault line, log the held range after any trim and the bytes re-queued, from the
Requeuedvalue. Either drop the picked range or name itpicked_offset/picked_len, so that it does not read as the remainder. - Add
hashto the "stole the tail of a lane's missing remainder" line at both levels. - Optional: at
-v, no line shows bytes that arrived but did not verify before a lane faulted. The run summary "downloaded" figure comes from sizes (EntryBytes::whole_blob,paid = len - resumed,crates/cli/src/commands/bundle_pull.rs:3294), not from wire bytes. A received-bytes field in the fault line lets an operator measure wire-level duplicates.
Acceptance
- A fault after a steal logs the trimmed held range and the re-queued byte count, and the sum of landed plus re-queued equals the held length.
- A test drives a slow-victim steal and then a watchdog fault on the victim, and asserts the logged fields.
Related
- feat(client): log the provider that served each completed range #2332: log the provider that served each completed range.
- bundle pull: a 1.15 GiB leg on a 0.5 MiB/s lon1 lane runs alone for 35 min while every other lane is idle (SDXL, 2 of 2 runs) #2348: slow single-lane tail on SDXL.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Projects
- StatusShow more project fieldsDone
Activity
fix(client): log the held range and re-queued bytes when a stolen-fro…
fix(client): log the held range and re-queued bytes when a stolen-fro…