Rich-T-kid opened a new pull request, #27935: URL: https://github.com/apache/datafusion/pull/27935
## Which issue does this PR close? - Working toward `RepartitionExec` optimizations. ## Rationale for this change The first `RepartitionExec` output currently holds a blocking mutex while it creates all output channels and starts the input tasks. At high partition counts, the other outputs block executor threads behind that work. ## What changes are included in this PR? One `execute` caller still creates the child streams synchronously, preserving immediate child errors, but publishes them to a shared startup future without holding a mutex. Racing callers return immediately and wait asynchronously. Startup runs once, and each output claims its own one-shot slot instead of removing its channel through a global lock. Partitioning and data flow are unchanged. ## What is the testing strategy for this PR? All 3,087 `datafusion-physical-plan` tests pass, including a new race test that holds the winning caller inside child `execute` and verifies that another output does not block. Format, Clippy with warnings denied, and the repository pre-push checks pass. A local 14-pair balanced screen compared exact base `e53403f058b8a1dab4cb1570d389b1d4ae69c3b4` with exact head `74f6315f30cd72f60cd90425486d23c0fc1359b0` at 512 partitions. Negative time is faster. | Workload | Paired time | 95% CI | Losses | Paired RSS | |---|---:|---:|---:|---:| | TPC-H Q18 | -4.94% | [-6.45%, -3.43%] | 0/14 | -2.03% | | TPC-DS Q64 | -19.09% | [-20.31%, -17.88%] | 0/14 | +1.47% | | ClickBench Q32 | +1.27% | [-0.73%, +3.28%] | 9/14 | +4.02% | ## Are there any user-facing changes? No. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
