You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Chia-Ping Tsai (JIRA)" <ji...@apache.org> on 2018/06/07 02:47:00 UTC

[jira] [Created] (KAFKA-7014) Guarantee the byte buffer returned by Serializer is reusable

Chia-Ping Tsai created KAFKA-7014:
-------------------------------------

             Summary: Guarantee the byte buffer returned by Serializer is reusable
                 Key: KAFKA-7014
                 URL: https://issues.apache.org/jira/browse/KAFKA-7014
             Project: Kafka
          Issue Type: Bug
            Reporter: Chia-Ping Tsai


The byte array returned by Serializer is copied to another ByteBuffer by KafkaProducer so the byte array is reusable actually. If kafka can guarantee this behavior (perhaps doc it on the Serializer), user can design the size-fixed message and then reuse the byte array.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)