vinothchandar commented on a change in pull request #8737: URL: https://github.com/apache/kafka/pull/8737#discussion_r431916698
########## File path: core/src/main/scala/kafka/admin/TopicCommand.scala ########## @@ -228,7 +228,7 @@ object TopicCommand extends Logging { if (topic.partitions.exists(partitions => partitions < 1)) throw new IllegalArgumentException(s"The partitions must be greater than 0") - if (!adminClient.listTopics().names().get().contains(topic.name)) { + try { Review comment: removed this check and instead let the request go to the server and error (we need to handle that anyway) ---------------------------------------------------------------- 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