You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Chia-Ping Tsai (Jira)" <ji...@apache.org> on 2024/05/02 09:17:00 UTC
[jira] [Resolved] (KAFKA-7014) Guarantee the byte buffer returned by Serializer is reusable
[ https://issues.apache.org/jira/browse/KAFKA-7014?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chia-Ping Tsai resolved KAFKA-7014.
-----------------------------------
Resolution: Won't Fix
> 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
> Priority: Minor
>
> 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
(v8.20.10#820010)