jolshan commented on a change in pull request #9944: URL: https://github.com/apache/kafka/pull/9944#discussion_r651971564
########## File path: clients/src/main/java/org/apache/kafka/clients/FetchSessionHandler.java ########## @@ -73,6 +77,22 @@ public FetchSessionHandler(LogContext logContext, int node) { private LinkedHashMap<TopicPartition, PartitionData> sessionPartitions = new LinkedHashMap<>(0); + /** + * All of the topic ids mapped to topic names for topics which exist in the fetch request session. + */ + private Map<String, Uuid> sessionTopicIds = new HashMap<>(0); + + /** + * All of the topic names mapped to topic ids for topics which exist in the fetch request session. + */ + private Map<Uuid, String> sessionTopicNames = new HashMap<>(0); + + public Map<Uuid, String> sessionTopicNames() { + return sessionTopicNames; + } + + private boolean canUseTopicIds = false; Review comment: This is something that we are doing in FetchSession. We close the session if the requests switch between 12 and 13 (or vice versa). Is the idea that we will just send the request based on the topic IDs provided to the builder (if we have an ID for each topic) and let the session code on the server handle it? -- 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