Repository navigation
fix(transfer,engine): revert parallel-receive-delta default-on (PIP-7 receiver corruption) - #4725
Merged
oferchen merged 1 commit intoMay 22, 2026
Conversation
… receiver corruption) PIP-4 (#4720) added the `parallel-threshold-trip` interop scenario that crosses `PARALLEL_RECEIVE_FILE_COUNT_THRESHOLD = 100` and exposed a real corruption bug: the receiver writes wrong bytes for the first dispatched file (`parallel_threshold/file_1.txt`) whenever a transfer trips the parallel-receive-delta dispatch path. The bug reproduces on stock `cargo build --release` because PIP-5 (#4666) flipped the feature into the default set across the workspace. This PR ships the immediate mitigation so default builds are safe again while PIP-7 investigates the receiver-side corruption: 1. Remove `parallel-receive-delta` from `default = [...]` in the workspace `Cargo.toml`, `crates/transfer/Cargo.toml`, and `crates/engine/Cargo.toml`. The feature stays defined and remains opt-in via `--features parallel-receive-delta` for testing. 2. Remove the `parallel-threshold-trip` matrix entry from `tools/ci/run_interop.sh` along with its setup, cleanup, and verify branches. The threshold constants in `receiver/mod.rs` stay in place. 3. Add `docs/design/pip-7-parallel-receive-delta-receiver-corruption-2026-05-22.md` tracking the open investigation, suspected locations (`crates/engine/src/concurrent_delta/parallel_apply.rs` and `crates/transfer/src/delta_pipeline/parallel.rs`), reproduction recipe, and acceptance criteria for re-promotion. 4. Flag the deferred-pending-PIP-7 status in `README.md`, `CHANGELOG.md`, `docs/design/parallel-receive-delta-default-on.md`, `docs/design/pip-4-closure-2026-05-21.md`, and `docs/design/br-6-sign-off-check-in-2026-05-21.md` so the shipped claims no longer read as if default builds exercise the parallel receive-delta path. The `ParallelDeltaApplier`, `dispatch_receiver_strategy()`, `enable_parallel_receive_delta()`, and the `OC_RSYNC_FORCE_PARALLEL` debug env knob from PIP-4 are intentionally retained; they remain reachable when the feature is opted into so the PIP-7 investigation can iterate against them.
oferchen
deleted the
fix/pip-7-revert-parallel-default-receiver-corruption
branch
May 22, 2026 10:28
This was referenced May 22, 2026
oferchen
added a commit
that referenced
this pull request
May 22, 2026
…dentity assertion (PIP-9.c) Reintroduce the parallel-threshold-trip regression coverage that PR #4725 removed when it reverted the parallel-receive-delta default-on flip after PIP-4 (#4720) surfaced receiver corruption on file_1.txt under dist-profile builds (LTO + panic=abort). The new tests/parallel_threshold_trip.rs runs a local-mode recursive transfer of 120 deterministically seeded 16 KiB files under parallel_threshold/file_N.txt (the same shape the deleted scenario used in tools/ci/run_interop.sh) and asserts byte identity via SHA-256 on every file, with file_1.txt called out explicitly first so a future regression of the original corruption is unambiguous. The test passes on master HEAD because the sequential receiver path is correct; once PIP-9.b wires the parallel applier into production it will catch any regression of the PIP-4 corruption. Test name starts with parallel_threshold_ so the dist-profile CI cell from PIP-9.d can filter via nextest -E 'test(parallel_threshold)'. Payload generation uses an inline xorshift64* PRNG seeded by a fixed constant XORed with the file index, mirroring the existing pattern in tests/inc_recurse_sender_fuzz_1863.rs. No new external dependencies; the checksums dev-dep already exposes a Sha256 helper used by other workspace tests. Refs: docs/design/pip-9-parallel-receive-delta-wire-up-2026-05-22.md
oferchen
added a commit
that referenced
this pull request
May 22, 2026
…dentity assertion (PIP-9.c) (#4738) Reintroduce the parallel-threshold-trip regression coverage that PR #4725 removed when it reverted the parallel-receive-delta default-on flip after PIP-4 (#4720) surfaced receiver corruption on file_1.txt under dist-profile builds (LTO + panic=abort). The new tests/parallel_threshold_trip.rs runs a local-mode recursive transfer of 120 deterministically seeded 16 KiB files under parallel_threshold/file_N.txt (the same shape the deleted scenario used in tools/ci/run_interop.sh) and asserts byte identity via SHA-256 on every file, with file_1.txt called out explicitly first so a future regression of the original corruption is unambiguous. The test passes on master HEAD because the sequential receiver path is correct; once PIP-9.b wires the parallel applier into production it will catch any regression of the PIP-4 corruption. Test name starts with parallel_threshold_ so the dist-profile CI cell from PIP-9.d can filter via nextest -E 'test(parallel_threshold)'. Payload generation uses an inline xorshift64* PRNG seeded by a fixed constant XORed with the file index, mirroring the existing pattern in tests/inc_recurse_sender_fuzz_1863.rs. No new external dependencies; the checksums dev-dep already exposes a Sha256 helper used by other workspace tests. Refs: docs/design/pip-9-parallel-receive-delta-wire-up-2026-05-22.md
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
… receiver corruption) (#4725) PIP-4 (#4720) added the `parallel-threshold-trip` interop scenario that crosses `PARALLEL_RECEIVE_FILE_COUNT_THRESHOLD = 100` and exposed a real corruption bug: the receiver writes wrong bytes for the first dispatched file (`parallel_threshold/file_1.txt`) whenever a transfer trips the parallel-receive-delta dispatch path. The bug reproduces on stock `cargo build --release` because PIP-5 (#4666) flipped the feature into the default set across the workspace. This PR ships the immediate mitigation so default builds are safe again while PIP-7 investigates the receiver-side corruption: 1. Remove `parallel-receive-delta` from `default = [...]` in the workspace `Cargo.toml`, `crates/transfer/Cargo.toml`, and `crates/engine/Cargo.toml`. The feature stays defined and remains opt-in via `--features parallel-receive-delta` for testing. 2. Remove the `parallel-threshold-trip` matrix entry from `tools/ci/run_interop.sh` along with its setup, cleanup, and verify branches. The threshold constants in `receiver/mod.rs` stay in place. 3. Add `docs/design/pip-7-parallel-receive-delta-receiver-corruption-2026-05-22.md` tracking the open investigation, suspected locations (`crates/engine/src/concurrent_delta/parallel_apply.rs` and `crates/transfer/src/delta_pipeline/parallel.rs`), reproduction recipe, and acceptance criteria for re-promotion. 4. Flag the deferred-pending-PIP-7 status in `README.md`, `CHANGELOG.md`, `docs/design/parallel-receive-delta-default-on.md`, `docs/design/pip-4-closure-2026-05-21.md`, and `docs/design/br-6-sign-off-check-in-2026-05-21.md` so the shipped claims no longer read as if default builds exercise the parallel receive-delta path. The `ParallelDeltaApplier`, `dispatch_receiver_strategy()`, `enable_parallel_receive_delta()`, and the `OC_RSYNC_FORCE_PARALLEL` debug env knob from PIP-4 are intentionally retained; they remain reachable when the feature is opted into so the PIP-7 investigation can iterate against them.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
…dentity assertion (PIP-9.c) (#4738) Reintroduce the parallel-threshold-trip regression coverage that PR #4725 removed when it reverted the parallel-receive-delta default-on flip after PIP-4 (#4720) surfaced receiver corruption on file_1.txt under dist-profile builds (LTO + panic=abort). The new tests/parallel_threshold_trip.rs runs a local-mode recursive transfer of 120 deterministically seeded 16 KiB files under parallel_threshold/file_N.txt (the same shape the deleted scenario used in tools/ci/run_interop.sh) and asserts byte identity via SHA-256 on every file, with file_1.txt called out explicitly first so a future regression of the original corruption is unambiguous. The test passes on master HEAD because the sequential receiver path is correct; once PIP-9.b wires the parallel applier into production it will catch any regression of the PIP-4 corruption. Test name starts with parallel_threshold_ so the dist-profile CI cell from PIP-9.d can filter via nextest -E 'test(parallel_threshold)'. Payload generation uses an inline xorshift64* PRNG seeded by a fixed constant XORed with the file index, mirroring the existing pattern in tests/inc_recurse_sender_fuzz_1863.rs. No new external dependencies; the checksums dev-dep already exposes a Sha256 helper used by other workspace tests. Refs: docs/design/pip-9-parallel-receive-delta-wire-up-2026-05-22.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
URGENT regression fix. PIP-4 (#4720) added the
parallel-threshold-tripinterop scenario that crossesPARALLEL_RECEIVE_FILE_COUNT_THRESHOLD = 100. That scenario exposed a real corruption bug: the receiver writes wrong bytes for the first dispatched file (parallel_threshold/file_1.txt) whenever a transfer trips the parallel-receive-delta dispatch path.Failure mode (both directions of the matrix):
Because PIP-5 (#4666) flipped
parallel-receive-deltainto the default feature set acrosscli,core,transfer, andengine, stockcargo build --releasecorrupts data on any transfer of more than 100 files. This is a shipping bug, not a test bug.The master CI run that reproduced the failure on commit
bc1476c(the PIP-4 merge) is at https://github.com/oferchen/rsync/actions/runs/26279354408.This PR ships the immediate mitigation so default builds are safe again while PIP-7 investigates the receiver-side corruption.
Changes (4 parts)
parallel-receive-deltafromdefault = [...]in workspaceCargo.toml,crates/transfer/Cargo.toml, andcrates/engine/Cargo.toml. The feature stays defined and remains opt-in via--features parallel-receive-deltafor testing.ParallelDeltaApplier,dispatch_receiver_strategy(),enable_parallel_receive_delta(), and theOC_RSYNC_FORCE_PARALLELdebug knob are intentionally retained.parallel-threshold-tripmatrix entry fromtools/ci/run_interop.shalong with its setup, cleanup, and verify branches. The threshold constants incrates/transfer/src/receiver/mod.rsstay in place; only the scenario that trips them is removed pending the PIP-7 fix.docs/design/pip-7-parallel-receive-delta-receiver-corruption-2026-05-22.mdcaptures status, symptom, reproduction, suspected locations (crates/engine/src/concurrent_delta/parallel_apply.rsandcrates/transfer/src/delta_pipeline/parallel.rs), required investigation steps (tcpdump onup:direction, slot-map instrumentation, serialised-first-batch diagnostic), and acceptance criteria for re-promotion.README.md(feature table row),CHANGELOG.md(PIP-4 entry),docs/design/parallel-receive-delta-default-on.md,docs/design/pip-4-closure-2026-05-21.md, anddocs/design/br-6-sign-off-check-in-2026-05-21.mdso the shipped claims no longer read as if default builds exercise the parallel receive-delta path.Test plan
parallel-threshold-tripscenario.bash -n tools/ci/run_interop.shis clean (verified locally).--features parallel-receive-deltastill compiles when opted into (deferred to CI matrix; nothing in the feature definition itself changes).