KIP-871 — Fix ByteBufferSerializer#serialize(String, ByteBuffer) compatible problem
Discussion Client
Fixes ByteBufferSerializer#serialize(String, ByteBuffer) to serialize only the remaining bytes (position to limit) rather than all capacity bytes. The bug causes extra null bytes to be included in the serialized output when the ByteBuffer's capacity exceeds the amount of valid data. Discarded in favor of KIP-872.
Details
| Author | LinShunKang |
| Status | Discussion |
| JIRA | KAFKA-4852 |
| Wiki | View on Apache Wiki |
| Created | 2022-09-25 |
| Last Modified | 2022-09-27 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.