Skip to content

bundle pull: range-dedup spliced_bytes over-counts when a failed donor's re-fetch overwrites a neighbour's splice #2193

Closed

Description

@yigitdot

Observed

Found in review of #2192. When a range-dedup donor fails verification, reassemble_dedup (crates/cli/src/commands/bundle_pull.rs) re-fetches that donor's outward_groups span. That span is widened to chunk-group boundaries, so it can overlap an adjacent donor that did splice cleanly. The adjacent donor's whole dst still counts in DedupOutcome::spliced_bytes.

Example: donor A has dst = [0, 10K) and fails its re-hash. Donor B has dst = [10K, 32K) and splices. The refetch outward_groups(A.dst) = [0, 16K) downloads and overwrites [10K, 16K), yet all 22 KiB of B count as spliced.

Impact

paid = total - spliced_bytes under-reports by less than one chunk group per failed-donor boundary. The run summary's downloaded and the per-entry -v line read slightly low. Billing is unaffected: vouchers track what the node actually delivered. This only happens when a donor fails verification.

Expected

Subtract the overlap between the re-fetched spans and the donor spans that did splice, at both splice sites (the first splice and the reconcile_deferred fallback splice).

🤖 Generated with Claude Code

Activity

  1. added
    kind:bug
    rust
    area:cli
    prio:low
    on Sep 28, 2026
  2. self-assigned this
    on Sep 28, 2026
  3. moved this from In progress to Done in deCDNon 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