Repository navigation
docs(design): PIP-7 reproduction + suspected location for parallel-receive-delta corruption - #4730
Merged
Merged
Conversation
…ceive-delta corruption Captures investigation results inside the rsync-profile container build with --features parallel-receive-delta. The corruption did not reproduce in the container across six repro shapes (initial / delta / comprehensive fixtures / OC_RSYNC_FORCE_PARALLEL / stress loop / oc pull direction), which combined with a fresh code read of crates/transfer/src/receiver/mod.rs, crates/transfer/src/delta_pipeline/parallel.rs, and crates/engine/src/concurrent_delta/parallel_apply.rs shows the ParallelDeltaPipeline / ParallelDeltaApplier path is never consumed by the production receive loop. The suspected location moves from the applier itself to the pipeline-construction side effect inside ReceiverContext::enable_parallel_receive_delta, with a fix sketch that removes or instruments the dead state before re-promoting the feature.
4 tasks
oferchen
added a commit
that referenced
this pull request
May 22, 2026
…olding (PIP-8) (#4731) * refactor(transfer,engine): tear out dead parallel-receive-delta scaffolding (PIP-8) PIP-7 (#4730) proved that the receiver-side parallel-receive-delta dispatch was a side-effect-only no-op. ReceiverContext::delta_pipeline had 1 writer (enable_parallel_receive_delta) and 0 readers - the production receive loop never drained the swapped pipeline. The only observable behaviour the feature flag enabled was the side effect of constructing ParallelDeltaPipeline::new, which spawns a DeltaConsumer background thread - the suspected source of the file_1.txt corruption PIP-4 surfaced. Remove the dead scaffolding: - ReceiverContext::enable_parallel_receive_delta - ReceiverContext::set_delta_pipeline - ReceiverContext::dispatch_receiver_strategy - ReceiverContext::select_receiver_strategy - ReceiverContext::total_source_bytes - ReceiverContext::dispatch_forced_parallel - The delta_pipeline: Option<Box<dyn ReceiverDeltaPipeline>> field - The ReceiverStrategy enum and TransferStats::receiver_strategy_chosen - PARALLEL_RECEIVE_FILE_COUNT_THRESHOLD, PARALLEL_RECEIVE_BYTES_THRESHOLD, FORCE_PARALLEL_RECEIVE_ENV constants - strategy_tests module in receiver/mod.rs - crates/transfer/src/receiver/tests/file_list/receiver_strategy.rs - dispatch_receiver_strategy() call sites in receiver/transfer/ {sync,pipelined,pipelined_incremental}.rs Keep compiled (no functional change): - ParallelDeltaApplier - benches drive it directly (parallel_receive_delta_perf, br_3j_f_dashmap_cores_vs_throughput, parallel_verify_chunk) - ParallelDeltaPipeline - wire_format_parallel_scheduling_fuzz exercises it; PIP-9 will need it as a substrate - DeltaConsumer - engine consumer tests + multi_producer_audit - The parallel-receive-delta feature flag - now a no-op pending PIP-9 Add docs/design/pip-9-parallel-receive-delta-wire-up-2026-05-22.md to track the future RJN-3 fan-out integration of ParallelDeltaApplier through a production reader. Update README, CHANGELOG, and the deferral notes in parallel-receive-delta-default-on.md, pip-4-closure-2026-05-21.md, br-6-sign-off-check-in-2026-05-21.md, and the PIP-7 doc itself (status: OPEN -> MITIGATED-PENDING-PIP-9). * fix(engine): use Components::next() walk for plan_directory_to_relative SkipWhile<Components, _> has no as_path() method on stable Rust 1.88; the previous skip_while-then-as_path call introduced in SEC-1.q (#4728) slipped through that PR's CI but breaks fmt+clippy on every subsequent master CI run. Switch to a manual Components::next() walk that consumes the leading Prefix/RootDir/CurDir components, then calls as_path() on the unwrapped Components iterator.
3 tasks
oferchen
added a commit
that referenced
this pull request
May 22, 2026
… (PIP-9) (#4735) Documents the architecture, interop test plan, feature flag transition, and sub-task punch list for routing the production receiver token loop through ParallelDeltaApplier behind the existing parallel-receive-delta feature flag. Follows the PIP-8 dead-scaffolding teardown (#4731) and the PIP-7 corruption investigation (#4730). No code changes; the wire-up itself lands across PIP-9.a through PIP-9.f.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
…ceive-delta corruption (#4730) Captures investigation results inside the rsync-profile container build with --features parallel-receive-delta. The corruption did not reproduce in the container across six repro shapes (initial / delta / comprehensive fixtures / OC_RSYNC_FORCE_PARALLEL / stress loop / oc pull direction), which combined with a fresh code read of crates/transfer/src/receiver/mod.rs, crates/transfer/src/delta_pipeline/parallel.rs, and crates/engine/src/concurrent_delta/parallel_apply.rs shows the ParallelDeltaPipeline / ParallelDeltaApplier path is never consumed by the production receive loop. The suspected location moves from the applier itself to the pipeline-construction side effect inside ReceiverContext::enable_parallel_receive_delta, with a fix sketch that removes or instruments the dead state before re-promoting the feature.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
…olding (PIP-8) (#4731) * refactor(transfer,engine): tear out dead parallel-receive-delta scaffolding (PIP-8) PIP-7 (#4730) proved that the receiver-side parallel-receive-delta dispatch was a side-effect-only no-op. ReceiverContext::delta_pipeline had 1 writer (enable_parallel_receive_delta) and 0 readers - the production receive loop never drained the swapped pipeline. The only observable behaviour the feature flag enabled was the side effect of constructing ParallelDeltaPipeline::new, which spawns a DeltaConsumer background thread - the suspected source of the file_1.txt corruption PIP-4 surfaced. Remove the dead scaffolding: - ReceiverContext::enable_parallel_receive_delta - ReceiverContext::set_delta_pipeline - ReceiverContext::dispatch_receiver_strategy - ReceiverContext::select_receiver_strategy - ReceiverContext::total_source_bytes - ReceiverContext::dispatch_forced_parallel - The delta_pipeline: Option<Box<dyn ReceiverDeltaPipeline>> field - The ReceiverStrategy enum and TransferStats::receiver_strategy_chosen - PARALLEL_RECEIVE_FILE_COUNT_THRESHOLD, PARALLEL_RECEIVE_BYTES_THRESHOLD, FORCE_PARALLEL_RECEIVE_ENV constants - strategy_tests module in receiver/mod.rs - crates/transfer/src/receiver/tests/file_list/receiver_strategy.rs - dispatch_receiver_strategy() call sites in receiver/transfer/ {sync,pipelined,pipelined_incremental}.rs Keep compiled (no functional change): - ParallelDeltaApplier - benches drive it directly (parallel_receive_delta_perf, br_3j_f_dashmap_cores_vs_throughput, parallel_verify_chunk) - ParallelDeltaPipeline - wire_format_parallel_scheduling_fuzz exercises it; PIP-9 will need it as a substrate - DeltaConsumer - engine consumer tests + multi_producer_audit - The parallel-receive-delta feature flag - now a no-op pending PIP-9 Add docs/design/pip-9-parallel-receive-delta-wire-up-2026-05-22.md to track the future RJN-3 fan-out integration of ParallelDeltaApplier through a production reader. Update README, CHANGELOG, and the deferral notes in parallel-receive-delta-default-on.md, pip-4-closure-2026-05-21.md, br-6-sign-off-check-in-2026-05-21.md, and the PIP-7 doc itself (status: OPEN -> MITIGATED-PENDING-PIP-9). * fix(engine): use Components::next() walk for plan_directory_to_relative SkipWhile<Components, _> has no as_path() method on stable Rust 1.88; the previous skip_while-then-as_path call introduced in SEC-1.q (#4728) slipped through that PR's CI but breaks fmt+clippy on every subsequent master CI run. Switch to a manual Components::next() walk that consumes the leading Prefix/RootDir/CurDir components, then calls as_path() on the unwrapped Components iterator.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
… (PIP-9) (#4735) Documents the architecture, interop test plan, feature flag transition, and sub-task punch list for routing the production receiver token loop through ParallelDeltaApplier behind the existing parallel-receive-delta feature flag. Follows the PIP-8 dead-scaffolding teardown (#4731) and the PIP-7 corruption investigation (#4730). No code changes; the wire-up itself lands across PIP-9.a through PIP-9.f.
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
podman container build with
--features parallel-receive-delta.file_1.txtcorruptionacross six repro shapes (initial copy / delta apply / comprehensive
fixtures /
OC_RSYNC_FORCE_PARALLEL/ 10-run stress loop / oc-pulldirection).
crates/engine/src/concurrent_delta/parallel_apply.rs,crates/transfer/src/delta_pipeline/parallel.rs, andcrates/transfer/src/receiver/mod.rsshows theParallelDeltaApplier/ParallelDeltaPipelinesurfaces have noproduction callers in the receiver hot loop (matches the standing
MEMORY.mdnoteproject_parallel_interop_parity_gap.md). Thesuspected location therefore moves from the applier internals to the
pipeline-construction side effect inside
ReceiverContext::enable_parallel_receive_deltaatcrates/transfer/src/receiver/mod.rs:418-422.re-promoting the feature, bisect under the
distprofile (CIreproduces,
releaseprofile in the container does not), and re-addparallel-threshold-tripbehind an opt-in env gate.Test plan
follow-up and is explicitly out of scope here.