Skip to content

e2e: bundle striping over-bills 448 wire bytes under parallel load #2663

Closed

Description

@thiras

Found while verifying #2662 (the #2629 fix). One anvil e2e failed once under parallel load.

Test. crates/e2e/tests/cli_bundle_pull_range_dedup.rs: cli_bundle_pull_stripes_a_complement_across_two_holders.

Failure.

Error: the two lanes must bill a's whole file plus b's 24 complement ranges once (2481940 wire bytes), got 1245400 + 1236988

The two lanes billed 2482388 wire bytes, 448 more than the exact total. 448 = 7 × 64 B, i.e. seven bao parent hashes. That fits one range being re-split or re-opened mid-pull, for example by a steal or a lane fault, which sends a left-boundary proof path again.

Rate. 1 failure in about 13 runs of the 12-binary batch from #2629 (cargo nextest run -p decdn-e2e --features anvil-e2e --retries 0, with DECDN_NODE_LOG='info,decdn_client=debug'). It did not recur in the next 7 runs. The run captured no client log for this test, so the trigger is unconfirmed.

Ask. Find out which re-open adds the proof bytes. Then decide whether the test's exact-equality bound should allow a bounded proof overhead per re-split, or whether the client should not re-split here. Over-billing a few proof hashes is the safe direction, but the test should state that bound, not hit it by luck.

Repro.

cargo build -p decdn-cli -p decdn-node
DECDN_NODE_LOG='info,decdn_client=debug' cargo nextest run -p decdn-e2e --features anvil-e2e --retries 0 --no-fail-fast \
  -E 'binary(cli_bundle_pull_pool_id) | binary(cli_bundle_pull_range_dedup) | binary(cli_fetch_delegated) | binary(cli_fetch_recovers_one_holder) | binary(cli_fetch_resume) | binary(cli_fetch_topup) | binary(cli_fetch_two_data_dirs) | binary(cli_quote) | binary(cli_receipt) | binary(gateway_concurrent_pulls) | binary(gateway_pointer) | binary(gateway_public)'

🤖 Generated with Claude Code

Activity

  1. self-assigned this
    on Oct 28, 2026
  2. added
    kind:bug
    kind:test
    prio:low
    area:client
    on Oct 28, 2026
  3. assigned and unassigned on Oct 28, 2026
  4. moved this from Backlog to In progress in deCDNon Oct 28, 2026
  5. added a commit that references this issue on Oct 28, 2026
    690346a
  6. added a commit that references this issue on Oct 28, 2026
    fe65325
  7. moved this from In progress to Done in deCDNon Oct 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:clientkind:bugkind:testprio:low

Type

No type

Fields

Priority

None yet

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions