TaiJuWu commented on code in PR #20108: URL: https://github.com/apache/kafka/pull/20108#discussion_r2187884704
########## test-common/test-common-runtime/src/main/java/org/apache/kafka/common/test/ClusterInstance.java: ########## @@ -258,7 +258,52 @@ default Set<GroupProtocol> supportedGroupProtocols() { //---------------------------[wait]---------------------------// default void waitTopicDeletion(String topic) throws InterruptedException { - waitForTopic(topic, 0); + Collection<KafkaBroker> brokers = aliveBrokers().values(); + List<TopicPartition> topicPartitions = IntStream.range(0, 1) + .mapToObj(partition -> new TopicPartition(topic, partition)) + .toList(); + Review Comment: We need to check the topics are deleted from metadataCache, like line 294, WDYT? -- 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