oraen opened a new pull request, #19990: URL: https://github.com/apache/kafka/pull/19990
Improve fairness of partition fetch order when clients fetch data to avoid partition starvation. Randomly shuffles the `readPartitionInfo` sequence before iterating over it in the log read process. This change helps to avoid persistent partition hotspots and ensures fairer resource utilization when processing fetch requests. By shuffling the partitions, it prevents certain partitions from always being processed later, reducing the risk of starvation. The performance impact is negligible since the list is typically small. see https://issues.apache.org/jira/browse/KAFKA-19415 -- 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-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org