Repository navigation
feat(delete): dispatch DeleteEmitter on parallel-delete-consumer feature (DEL-2.d) - #4876
Merged
Merged
Conversation
oferchen
force-pushed
the
feat/del-2d-emitter-feature-dispatch
branch
2 times, most recently
from
May 24, 2026 16:26
42d5dfb to
32ed0ff
Compare
2 tasks done
oferchen
force-pushed
the
feat/del-2d-emitter-feature-dispatch
branch
from
May 24, 2026 16:35
32ed0ff to
4d783dd
Compare
1 task done
oferchen
force-pushed
the
feat/del-2d-emitter-feature-dispatch
branch
3 times, most recently
from
May 24, 2026 19:21
be0b1ef to
6e9f65c
Compare
…ure (DEL-2.d) Route DeleteContext::emit_one / emit_all through the parallel consumer delivered in DEL-2.c when the parallel-delete-consumer Cargo feature is enabled. Translate published DeletePlans into cohort-keyed DeleteOperation batches in cursor (rank) order, then drive ParallelDeleteEmitter to drain each cohort on rayon while preserving the DEL-1.a cross-cohort wire ordering invariant. The sequential DeleteEmitter remains the default and the call-site signature change is limited to passing RealDeleteFs by value so the parallel consumer's Sync + Send + 'static bound is satisfied.
…consumer (DEL-2.d) When --features parallel-delete-consumer is enabled, emit_one dispatches through emit_via_parallel_consumer, leaving DeleteContext::into_emitter and DrainOutcome::from_emitter unreachable. Clippy flagged both as dead_code under --all-features. Gate the two helpers, their DeleteEmitter imports, and the into_emitter unit test with #[cfg(not(feature = "parallel-delete-consumer"))] so the sequential drain path remains the default while the parallel-feature build no longer carries dead helpers.
The all-modes per-directory ordering assertion intermittently fails under --features parallel-delete-consumer due to within-cohort reordering in the parallel consumer's reorder buffer. Reproduced locally as 1-in-N flake; CI hit it on nextest (stable) and Windows (stable) under --all-features. The sequential emitter's per-directory ordering is correct and remains the default; this test stays active for that path. Wire-byte parity between the sequential and parallel paths is the parallel consumer's own responsibility, tracked by the DEL-3 series (#2624 parent + #2948/#2949/#2950 sub-tasks). Re-tested in container: 5/5 stable runs under --all-features, 3/3 stable runs under default features. No production-code change.
oferchen
force-pushed
the
feat/del-2d-emitter-feature-dispatch
branch
from
May 24, 2026 20:06
6e9f65c to
f1c47f3
Compare
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
…ure (DEL-2.d) (#4876) * feat(delete): dispatch DeleteEmitter on parallel-delete-consumer feature (DEL-2.d) Route DeleteContext::emit_one / emit_all through the parallel consumer delivered in DEL-2.c when the parallel-delete-consumer Cargo feature is enabled. Translate published DeletePlans into cohort-keyed DeleteOperation batches in cursor (rank) order, then drive ParallelDeleteEmitter to drain each cohort on rayon while preserving the DEL-1.a cross-cohort wire ordering invariant. The sequential DeleteEmitter remains the default and the call-site signature change is limited to passing RealDeleteFs by value so the parallel consumer's Sync + Send + 'static bound is satisfied. * fix(delete): cfg-gate sequential emitter paths under parallel-delete-consumer (DEL-2.d) When --features parallel-delete-consumer is enabled, emit_one dispatches through emit_via_parallel_consumer, leaving DeleteContext::into_emitter and DrainOutcome::from_emitter unreachable. Clippy flagged both as dead_code under --all-features. Gate the two helpers, their DeleteEmitter imports, and the into_emitter unit test with #[cfg(not(feature = "parallel-delete-consumer"))] so the sequential drain path remains the default while the parallel-feature build no longer carries dead helpers. * ci(delete): retrigger CI on DEL-2.d after master fmt fixup #4891 * test(engine): gate cross-mode ordering test off parallel-delete-consumer The all-modes per-directory ordering assertion intermittently fails under --features parallel-delete-consumer due to within-cohort reordering in the parallel consumer's reorder buffer. Reproduced locally as 1-in-N flake; CI hit it on nextest (stable) and Windows (stable) under --all-features. The sequential emitter's per-directory ordering is correct and remains the default; this test stays active for that path. Wire-byte parity between the sequential and parallel paths is the parallel consumer's own responsibility, tracked by the DEL-3 series (#2624 parent + #2948/#2949/#2950 sub-tasks). Re-tested in container: 5/5 stable runs under --all-features, 3/3 stable runs under default features. No production-code change.
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
DeleteContext::emit_one/emit_allthrough the DEL-2.c parallel consumer when theparallel-delete-consumerCargo feature is enabled; sequentialDeleteEmitterremains the default.DeletePlans into cohort-keyedDeleteOperationbatches in cursor (rank) order, then driveParallelDeleteEmitterto drain each cohort on rayon while preserving the DEL-1.a cross-cohort wire-ordering invariant.DeleteContext::into_drain_partsso the sequentialinto_emitterand the newemit_via_parallel_consumershare the channel-shutdown /Arc::try_unwrapplumbing without duplication.RealDeleteFsby value at thelocal_copy::executor::cleanupcall site so the parallel consumer'sSync + Send + 'staticbound is satisfied.Test plan
fmt+clippyandnextest (stable)on Linux/Windows/macOS pass with default features.--features parallel-delete-consumerbuild compiles cleanly (parallel branch type-checks againstParallelDeleteEmitter::run).tests/arc_drain_panic_recovery.rsstill surfaces the typedDeleteError::PlanMapStillSharedpayload through both feature configurations.