Repository navigation
refactor(transfer,engine): tear out dead parallel-receive-delta scaffolding (PIP-8) - #4731
Merged
oferchen merged 2 commits intoMay 22, 2026
Conversation
…olding (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).
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
deleted the
refactor/pip-8-tear-out-dead-parallel-receive-delta-scaffolding
branch
May 22, 2026 14:01
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.
5 tasks
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
PIP-7 (#4730) proved that the receiver-side
parallel-receive-deltadispatch was a side-effect-only no-op.
ReceiverContext::delta_pipelinehad 1 writer (
enable_parallel_receive_delta) and 0 readers - theproduction 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 aDeltaConsumerbackground thread - the suspected source of thefile_1.txtcorruption surfaced by the PIP-4parallel-threshold-tripinterop scenario.
This PR tears out the dead receiver-side dispatch scaffolding so the
feature flag can no longer spawn an unobserved background thread that
the receiver never consumes.
What was deleted
ReceiverContext::enable_parallel_receive_deltaReceiverContext::set_delta_pipelineReceiverContext::dispatch_receiver_strategyReceiverContext::select_receiver_strategyReceiverContext::total_source_bytesReceiverContext::dispatch_forced_paralleldelta_pipeline: Option<Box<dyn ReceiverDeltaPipeline>>fieldReceiverStrategyenum andTransferStats::receiver_strategy_chosenPARALLEL_RECEIVE_FILE_COUNT_THRESHOLD,PARALLEL_RECEIVE_BYTES_THRESHOLD,FORCE_PARALLEL_RECEIVE_ENVconstants
strategy_testsmodule inreceiver/mod.rscrates/transfer/src/receiver/tests/file_list/receiver_strategy.rsdispatch_receiver_strategy()call sites inreceiver/transfer/{sync,pipelined,pipelined_incremental}.rsWhat was kept (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_fuzzexercises it; PIP-9 will needit as a substrate
DeltaConsumer- engine consumer tests +multi_producer_auditreference itparallel-receive-deltafeature flag - now a no-op pending PIP-9The
OC_RSYNC_FORCE_PARALLELenv knob is silently a no-op now (theenv constant is gone; the variable is no longer read anywhere).
Docs
docs/design/pip-9-parallel-receive-delta-wire-up-2026-05-22.md(status: OPEN) to track the future RJN-3 fan-out integration of
ParallelDeltaApplierthrough a real production reader.PIP-8" appendix; bump status from
OPENtoMITIGATED-PENDING-PIP-9.parallel-receive-delta-default-on.md,pip-4-closure-2026-05-21.md, andbr-6-sign-off-check-in-2026-05-21.mdfrom "DEFERRED pending PIP-7fix" to "SUPERSEDED by PIP-7 + PIP-8".
Test plan
receiver_strategy.rstests mustno longer compile; the strategy_tests in receiver/mod.rs are
gone;
transfer_stats_incremental_fields_existandtransfer_stats_has_incremental_fieldsupdated to drop thereceiver_strategy_chosenfieldparallel-receive-deltafeature flag is now a no-op andparallel-threshold-tripalready removed by PR fix(transfer,engine): revert parallel-receive-delta default-on (PIP-7 receiver corruption) #4725