lbradstreet opened a new pull request #9123: URL: https://github.com/apache/kafka/pull/9123
When the consumer fetches a lot of partitions at once the isAvailable check can become expensive due to a high number of contains check. We might as well perform the isFetchable check first as this is clearly much cheaper. ---------------------------------------------------------------- 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