You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bundle pull: range-dedup spliced_bytes over-counts when a failed donor's re-fetch overwrites a neighbour's splice #2193
area:clidecdn binary: get, gateway, pool, publish, origin, setupkind:bugSomething does not behave as documentedprio:lowWhen convenientrustDependabot: a Cargo update; use area: labels for Rust code otherwise
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).
area:clidecdn binary: get, gateway, pool, publish, origin, setupkind:bugSomething does not behave as documentedprio:lowWhen convenientrustDependabot: a Cargo update; use area: labels for Rust code otherwise
Activity