jolshan commented on a change in pull request #9684: URL: https://github.com/apache/kafka/pull/9684#discussion_r535743912
########## File path: core/src/main/scala/kafka/server/KafkaApis.scala ########## @@ -1896,6 +1896,11 @@ class KafkaApis(val requestChannel: RequestChannel, .setTopicConfigErrorCode(Errors.NONE.code) } } + val topicIds = zkClient.getTopicIdsForTopics(results.asScala.map(result => result.name()).toSet) Review comment: If going to ZK here is too slow, another option is to provide a callback to adminManager.createTopics which can be called after createTopicWithAssignment. The idea is that createTopicWithAssignment (and writeTopicPartitionAssignment) would return the topic ID to avoid an extra call to ZK. I wasn't sure which option was better. ---------------------------------------------------------------- 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