Skip to content

client: lane-fault WARN prints the pre-steal range, so a stolen tail reads as re-queued #2376

Closed

Description

@yigitdot

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_worker builds the fault LaneRange from r_start / r_len, the picked range (crates/client/src/scheduler.rs:2576).
  • Work::steal trims the victim slot in_flight[victim] to end at the split (scheduler.rs:1649).
  • requeue_missing reads the trimmed slot (scheduler.rs:1959) and returns Requeued { held, bytes }, which the fault path drops (scheduler.rs:2565).

The log line and the re-queue use different ranges.

Proposal

  1. In the lane-fault line, log the held range after any trim and the bytes re-queued, from the Requeued value. Either drop the picked range or name it picked_offset / picked_len, so that it does not read as the remainder.
  2. Add hash to the "stole the tail of a lane's missing remainder" line at both levels.
  3. 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

Activity

  1. added
    kind:bug
    rust
    prio:low
    on Oct 9, 2026
  2. added
    area:client
    on Oct 21, 2026
  3. self-assigned this
    on Oct 29, 2026
  4. moved this from Backlog to In progress in deCDNon Oct 29, 2026
  5. added 2 commits that reference this issue on Oct 29, 2026
    8c07fc0
    c44dfb2
  6. moved this from In progress to Done in deCDNon Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:clientkind: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