Xi Lyu created SPARK-55338:
------------------------------
Summary: Centralize request decompression logic in gRPC interceptor
Key: SPARK-55338
URL: https://issues.apache.org/jira/browse/SPARK-55338
Project: Spark
Issue Type: Improvement
Components: Connect
Affects Versions: 4.1.1
Reporter: Xi Lyu
Previously, decompression logic was scattered across multiple handlers
(AnalyzePlanHandler, ExecutePlanHandler, and probably other handlers in the
future), with each handler responsible for decompressing its own compressed
requests. This approach made it difficult to maintain consistent decompression
behavior across different RPC types.
We should introduce RequestDecompressionInterceptor as a gRPC interceptor that
handles decompression for all compressed requests before they reach downstream
to ensure Single Responsibility, so decompression logic will be in one place,
making it easier to maintain.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]