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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to