jolshan commented on a change in pull request #9944: URL: https://github.com/apache/kafka/pull/9944#discussion_r627518693
########## File path: clients/src/main/java/org/apache/kafka/common/requests/FetchRequest.java ########## @@ -319,12 +355,25 @@ public int maxBytes() { return data.maxBytes(); } - public Map<TopicPartition, PartitionData> fetchData() { + // For versions 13+, throws UnknownTopicIdException if the topic ID was unknown to the server. + public Map<TopicPartition, PartitionData> fetchData(Map<Uuid, String> topicNames) throws UnknownTopicIdException { Review comment: Yeah. That seems cleaner. So the idea is that the constructor, won't set fetchData for either version. -- 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