ijuma commented on code in PR #13037: URL: https://github.com/apache/kafka/pull/13037#discussion_r1057867126
########## core/src/test/scala/unit/kafka/utils/TestUtils.scala: ########## @@ -441,6 +441,17 @@ object TestUtils extends Logging { replicaAssignment.size } + def isTopicExistsAndHasSameNumPartitionsAndReplicationFactor(cause: Throwable): Boolean = { + // return true when: + // (1) the cause of exception is `TopicExistsException` + // (2) all partitions metadata are propagated + // (3) topic has the expected partitions number and replication factor Review Comment: Is this comment adding anything over the code? -- 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