Jason Gustafson created KAFKA-14166:
---------------------------------------
Summary: Consistent toString implementations for byte arrays in
generated messages
Key: KAFKA-14166
URL: https://issues.apache.org/jira/browse/KAFKA-14166
Project: Kafka
Issue Type: Improvement
Reporter: Jason Gustafson
In the generated `toString()` implementations for message objects (such as
protocol RPCs), we are a little inconsistent in how we display types with raw
bytes. If the type is `Array[Byte]`, then we use Arrays.toString. If the type
is `ByteBuffer` (i.e. when `zeroCopy` is set), then we use the corresponding
`ByteBuffer.toString`, which is not often useful. We should try to be
consistent. By default, it is probably not useful to print the full array
contents, but we might print summary information (e.g. size, checksum).
--
This message was sent by Atlassian Jira
(v8.20.10#820010)