Skip to content

refactor: audit WorkQueueSender usage sites and document multi-producer opportunities - #3283

Merged
oferchen merged 2 commits into
masterfrom
refactor/audit-work-queue-sender-multi-producer
Apr 21, 2026
Merged

oferchen merged 2 commits into
masterfrom
refactor/audit-work-queue-sender-multi-producer

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Audits all WorkQueueSender usage sites across the codebase for multi-producer needs (issue Fix Windows device detection and stabilize message source test #1609)
  • Documents findings as module-level comments in a new test file with supporting tests
  • Confirms all 3 usage sites are correctly single-producer (wire protocol is inherently single-stream)

Findings

Site Location Verdict
ParallelDeltaPipeline transfer/src/delta_pipeline.rs:185 Single-producer correct
DeltaConsumer::spawn engine/src/concurrent_delta/consumer.rs:129 Consumer-side only (N/A)
ThresholdDeltaPipeline transfer/src/delta_pipeline.rs:323 Delegates to ParallelDeltaPipeline

Multi-producer opportunities evaluated (multi-root transfers, inc-recurse segments, local copy) - none beneficial given protocol constraints.

Test plan

  • New tests pass: cargo nextest run -p engine --all-features -E 'test(multi_producer_audit)'
  • Clippy clean: cargo clippy -p engine --all-features --all-targets --no-deps -- -D warnings
  • Formatting: cargo fmt --all -- --check
  • CI passes all required checks

…er opportunities

Audit all WorkQueueSender usage sites to determine multi-producer needs
(issue #1609). All current sites are correctly single-producer because
the rsync wire protocol is inherently single-stream on the receive side.
The multi-producer feature flag remains forward-looking infrastructure
with no current production use case.
Arc, AtomicU64, and Ordering are only used in the #[cfg(feature =
"multi-producer")] test, so they must be similarly gated.
@oferchen
oferchen merged commit 5ea7bf7 into master Apr 21, 2026
37 checks passed
@oferchen
oferchen deleted the refactor/audit-work-queue-sender-multi-producer branch April 21, 2026 01:14
oferchen added a commit that referenced this pull request May 1, 2026
…er opportunities (#3283)

* refactor: audit WorkQueueSender usage sites and document multi-producer opportunities

Audit all WorkQueueSender usage sites to determine multi-producer needs
(issue #1609). All current sites are correctly single-producer because
the rsync wire protocol is inherently single-stream on the receive side.
The multi-producer feature flag remains forward-looking infrastructure
with no current production use case.

* fix: gate unused imports behind multi-producer feature flag

Arc, AtomicU64, and Ordering are only used in the #[cfg(feature =
"multi-producer")] test, so they must be similarly gated.
oferchen added a commit that referenced this pull request May 5, 2026
…er opportunities (#3283)

* refactor: audit WorkQueueSender usage sites and document multi-producer opportunities

Audit all WorkQueueSender usage sites to determine multi-producer needs
(issue #1609). All current sites are correctly single-producer because
the rsync wire protocol is inherently single-stream on the receive side.
The multi-producer feature flag remains forward-looking infrastructure
with no current production use case.

* fix: gate unused imports behind multi-producer feature flag

Arc, AtomicU64, and Ordering are only used in the #[cfg(feature =
"multi-producer")] test, so they must be similarly gated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant