dengziming commented on code in PR #17991: URL: https://github.com/apache/kafka/pull/17991#discussion_r1864114222
########## clients/src/test/java/org/apache/kafka/test/TestUtils.java: ########## @@ -542,28 +542,41 @@ public static Set<TopicPartition> generateRandomTopicPartitions(int numTopic, in } /** - * Assert that a future raises an expected exception cause type. Return the exception cause - * if the assertion succeeds; otherwise raise AssertionError. + * Assert that a future raises an expected exception cause type and optionally verify the error message. Review Comment: Why are you rewriting the two methods, it's OK to keep it unchanged if no specific purpose are intended. -- 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