unknowntpo opened a new pull request, #24318:
URL: https://github.com/apache/kafka/pull/24318

   FetchCollector.initialize() reports a partition to FetchMetricsAggregator 
also when it throws. The failed CompletedFetch can stay in the FetchBuffer and 
report again on the next poll() or when it is drained. Each extra report 
records the metrics of the whole fetch response again, so 
records-consumed-total, bytes-consumed-total and their rates are too high.
   
   This PR makes FetchMetricsAggregator count each partition once. The two new 
tests in FetchCollectorTest fail on trunk with `expected: <10.0> but was: 
<20.0>`.
   


-- 
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