jolshan commented on a change in pull request #9684: URL: https://github.com/apache/kafka/pull/9684#discussion_r550905106
########## File path: clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java ########## @@ -1623,6 +1625,32 @@ public DeleteTopicsResult deleteTopics(final Collection<String> topicNames, return new DeleteTopicsResult(new HashMap<>(topicFutures)); } + @Override + public DeleteTopicsWithIdsResult deleteTopicsWithIds(final Collection<Uuid> topicIds, + final DeleteTopicsOptions options) { + final Map<Uuid, KafkaFutureImpl<Void>> topicFutures = new HashMap<>(topicIds.size()); + final List<Uuid> validTopicIds = new ArrayList<>(topicIds.size()); + for (Uuid topicId : topicIds) { + if (topicId.equals(Uuid.ZERO_UUID)) { + KafkaFutureImpl<Void> future = new KafkaFutureImpl<>(); + future.completeExceptionally(new InvalidTopicException("The given topic ID '" + Review comment: That makes sense. ---------------------------------------------------------------- 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