jolshan commented on a change in pull request #9944: URL: https://github.com/apache/kafka/pull/9944#discussion_r651333015
########## File path: clients/src/main/java/org/apache/kafka/clients/FetchSessionHandler.java ########## @@ -213,9 +335,22 @@ public FetchRequestData build() { } sessionPartitions = next; next = null; + canUseTopicIds = topicIds.keySet().containsAll(sessionPartitions.keySet().stream().map( + tp -> tp.topic()).collect(Collectors.toSet())); + // Only add topic IDs to the session if we are using topic IDs. + if (canUseTopicIds) { Review comment: That makes sense to me. -- 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