ijuma commented on a change in pull request #10269: URL: https://github.com/apache/kafka/pull/10269#discussion_r589635348
########## File path: core/src/main/scala/kafka/server/KafkaApis.scala ########## @@ -3368,8 +3396,16 @@ object KafkaApis { private[server] def sizeOfThrottledPartitions(versionId: Short, unconvertedResponse: FetchResponse, quota: ReplicationQuotaManager): Int = { - FetchResponse.sizeOf(versionId, unconvertedResponse.responseData.entrySet - .iterator.asScala.filter(element => quota.isThrottled(element.getKey)).asJava) + val topicResponses = new util.ArrayList[FetchResponseData.FetchableTopicResponse]() Review comment: I see, I guess this changed once we moved to the auto generated fetch. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org