dajac commented on code in PR #13240: URL: https://github.com/apache/kafka/pull/13240#discussion_r1121487731
########## core/src/main/scala/kafka/server/KafkaApis.scala: ########## @@ -425,35 +425,63 @@ class KafkaApis(val requestChannel: RequestChannel, requestHelper.sendMaybeThrottle(request, offsetCommitRequest.getErrorResponse(Errors.UNSUPPORTED_VERSION.exception)) CompletableFuture.completedFuture[Unit](()) } else { + val topicNames = + if (offsetCommitRequest.version() >= 9) + metadataCache.topicIdsToNames() + else + Collections.emptyMap[Uuid, String]() + + val resolvedTopics = new ArrayBuffer[OffsetCommitRequestData.OffsetCommitRequestTopic]() + offsetCommitRequest.data.topics.forEach { topic => + var topicName = topic.name() + if (Utils.isBlank(topicName)) { Review Comment: It would be better to rely on the version of the request instead of the topic name here. -- 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