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/10/21 16:08:00 UTC
[jira] [Created] (KAFKA-17847) Avoid the extra bytes copy when compressing telemetry payload
Chia-Ping Tsai created KAFKA-17847:
--------------------------------------
Summary: Avoid the extra bytes copy when compressing telemetry payload
Key: KAFKA-17847
URL: https://issues.apache.org/jira/browse/KAFKA-17847
Project: Kafka
Issue Type: Improvement
Reporter: Chia-Ping Tsai
Assignee: Wei-Ting Chen
https://github.com/apache/kafka/blob/6e8df2951d8a93e0c4197d1054b0c4dec9e1f289/clients/src/main/java/org/apache/kafka/common/telemetry/internals/ClientTelemetryReporter.java#L710
`createPayload should return `MetricsData`, and then leverage MetricsData#writeTo to compress the data, avoiding extra byte copying.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)