Hyukjin Kwon created SPARK-62252:
------------------------------------
Summary: Read a Unix path of a target of gRPC as bytes, end the
target at a NUL, send the metadata of a builder of its own on background
requests, keep reserved keys out of its metadata, and fail long and xds:
targets, as grpcio does
Key: SPARK-62252
URL: https://issues.apache.org/jira/browse/SPARK-62252
Project: Spark
Issue Type: Improvement
Components: Connect
Affects Versions: 5.0.0
Reporter: Hyukjin Kwon
Follow-up of SPARK-62220 (the gRPC target forms of the Python client), from its
review. The Python client differs from PySpark 4.3.0 with grpcio in these ways:
- It reads a Unix path of a target as text, so a path that is not UTF-8 becomes
U+FFFD and connects to a different socket. grpcio reads it as bytes.
- It does not end a target at a NUL, which gRPC's C target treats as its end.
- Its background requests (the removal of checkpoints, finalizers) do not send
the metadata of a channel builder of its own.
- It lets reserved keys from metadata() (te, grpc-timeout, content-length,
connection and the others) bypass the sanitization.
- Its handling of None in metadata differs.
- It reads the metadata() of the default builder once, not at each call.
- The errors of long targets and of xds: targets differ.
Make them behave as grpcio does.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]