villebro opened a new pull request, #2989: URL: https://github.com/apache/datafusion-ballista/pull/2989
# Which issue does this PR close? Follows up #2577, which added the result service and deprecated the embedded proxy for removal in 57.0.0. # Rationale for this change 56.0.0 has shipped, so the scheduler's embedded Arrow Flight proxy can be removed as the 56.0.0 upgrade guide announced. The result service (`ballista-result-service`) now serves results to clients that can't reach the executors. Result traffic stays off the scheduler, and the service scales independently of it. # What changes are included in this PR? - **Scheduler**: removes `--enable-embedded-flight-proxy`, `SchedulerConfig::enable_embedded_flight_proxy` and `with_enable_embedded_flight_proxy`. `--advertise-flight-endpoint` (and its alias `--advertise-flight-sql-endpoint`) now needs a value; a bare flag used to start the proxy. The `enable_embedded_flight_proxy` field is gone from `/api/state` on the scheduler and the history server. `arrow-flight` is now an optional dependency of `ballista-scheduler`, enabled by `flight-sql`, which is its only remaining user. - **Protocol**: `GetJobStatusResult.local` (field 2 of the `flight_proxy` oneof) is removed and reserved. The Rust and Python clients no longer fetch results from the scheduler. - **Flight SQL**: removes `do_get_fallback`. It forwarded Ballista's own partition-fetch tickets in place of the proxy, and it was the one `DoGet` path that checked no session token. The frontend now serves only Flight SQL tickets and answers others with `Unimplemented`. - **Chaos harness**: drops the `proxy` fetch mode. The k8s backend always deploys a result service. Scenario I (scheduler SIGTERM during a final-result fetch) now fetches through the result service. - **Docs**: new `docs/source/upgrading/57.0.0.md`. The scheduler, Kubernetes, Flight SQL and result-service docs no longer mention the proxy. - The regenerated Python gRPC stubs also pick up the `column_stats` removal from #2868, which hadn't been regenerated. The removal has no significant impact on the size of the scheduler image. # Are there any user-facing changes? Yes, breaking: removed CLI flags and `SchedulerConfig` API, a removed REST field, a removed proto field, and Flight SQL no longer redeems Ballista tickets. It needs the `api-change` and `proto-change` labels. The migration, which is to run `ballista-result-service` and point `--advertise-flight-endpoint` at it, is in `docs/source/upgrading/57.0.0.md`. ## Testing `dev/rust_lint.sh`, ruff and prettier pass. Unit tests for core, scheduler (with `flight-sql`), flight-sql, result-service and chaos pass, apart from tests that bind loopback sockets, which this environment forbids. Those fail the same way on unmodified `main`. The Flight SQL end-to-end tests and the chaos scenarios (including scenario I) still need a run in CI or on a machine that allows local sockets. -- 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]
