beliefer opened a new pull request, #41464: URL: https://github.com/apache/spark/pull/41464
### What changes were proposed in this pull request? `SparkConnectStreamHandler` treats the proto requests from connect client and send the responses back to connect client. `SparkConnectStreamHandler` holds a component `StreamObserver` to send responses. So I think we should keep the `StreamObserver` could be accessed only with `SparkConnectStreamHandler`. This PR want decouple the process handle commands and the other process send responses on server side. As we disscussed on https://github.com/apache/spark/pull/41379, this PR doesn't delay to send any response "right now" and expects that it will be returned. This PR wraps the detail of `StreamObserver` into `SparkConnectStreamHandler`, SparkConnectPlanner only need call `sendResponse` if the response is ready. ### Why are the changes needed? Decouple handle command and send response on server side. ### Does this PR introduce _any_ user-facing change? 'No'. Just update the inner implementation. ### How was this patch tested? Exists test cases. -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org