conduktor.io ↗

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

AuthorLinShunKang
StatusDiscussion
JIRAKAFKA-4852
WikiView on Apache Wiki
Created2022-09-25
Last Modified2022-09-27
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.