aetherxeg-source opened a new pull request, #2973: URL: https://github.com/apache/datafusion-ballista/pull/2973
# Which issue does this PR close? Closes #2936. # Rationale for this change The standalone executor drops its temporary work-directory owner during startup, before its spawned services finish using the directory. Later shuffle writes can recreate the path with default permissions, and the recreated directory is not automatically cleaned up. # What changes are included in this PR? - Reuse the default work-directory helper introduced in #2775, retaining Unix 0700 permissions and returning a configuration error for non-UTF-8 paths. - Share ownership of the standalone temporary directory with the executor, dedicated task runtime and Flight service, including the response streams and blocking readers that may outlive a request. - Tie the standalone Flight server to the existing push/pull lifecycle and preserve the caller-owned directory behavior for ordinary executors. - Add regression coverage for startup, shutdown, cancellation, concurrent executors and overlapping shuffle/Flight operations. Use a non-default cross-crate test synchronization feature to exercise real writer completion deterministically; it is included in explicit all-features builds, but not normal builds. # Are there any user-facing changes? Standalone executors retain their automatically created private work directory while it is needed, and release it when its remaining owners are dropped. No protocol changes or new external dependencies are introduced. # Validation - Reproduced the original startup defect in pull and push modes. - Linux and macOS regression qualification, including umask 022 and 077. - Targeted ownership and cancellation tests, including negative controls and restored successful runs. - Seven gate lifecycle tests and seventeen Core shuffle-writer tests passed on the formatting predecessor; final changes were limited to formatting two test fixtures. - Final candidate passed formatting, Cargo checks, feature-enabled Clippy and normal feature exclusion checks. - Remaining upstream lint scripts (TOML formatting, Machete, proto sync, configuration docs, Rust docs and workspace/CLI Clippy) passed on the final candidate. Fork qualification: https://github.com/AETHERXGLOBAL/datafusion-ballista/actions/runs/45731179238 Final quality checks: https://github.com/AETHERXGLOBAL/datafusion-ballista/actions/runs/45788510590 Upstream lint scopes: https://github.com/AETHERXGLOBAL/datafusion-ballista/actions/runs/45791516777 These are fork-side qualification results, not upstream PR checks. The full earlier workspace qualification was performed on an earlier candidate; only the affected scopes were requalified subsequently. # Contribution AETHER X GLOBAL (@aetherxeg-source). AHMED YOUNIS -- 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]
