You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "majialoong (via GitHub)" <gi...@apache.org> on 2026/02/06 17:52:46 UTC
[PR] KAFKA-15894: Fix messageConversionsTimeNanos and temporaryMemoryBytes not accumulated across partitions [kafka]
majialoong opened a new pull request, #21420:
URL: https://github.com/apache/kafka/pull/21420
In `KafkaApis.updateRecordConversionStats`, `request.messageConversionsTimeNanos` and `request.temporaryMemoryBytes` were assigned with `=` instead of `+=`. When a produce request spans multiple partitions, `processingStatsCallback` calls this method once per partition, causing earlier values to be overwritten. Only the last partition's stats were recorded.
This PR changes `=` to `+=` so that the metrics are correctly accumulated, and adds a unit test covering the multi-partition scenario.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-15894: Fix messageConversionsTimeNanos and temporaryMemoryBytes not accumulated across partitions [kafka]
Posted by "chia7712 (via GitHub)" <gi...@apache.org>.
chia7712 merged PR #21420:
URL: https://github.com/apache/kafka/pull/21420
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org