jolshan commented on code in PR #17402: URL: https://github.com/apache/kafka/pull/17402#discussion_r1806755644
########## core/src/test/scala/kafka/utils/TestInfoUtils.scala: ########## @@ -67,4 +67,22 @@ object TestInfoUtils { else None } + + /** + * Returns whether transaction version 2 is enabled. + * When no parameter is provided, the default returned is true. + */ + def isTransactionV2Enabled(testInfo: TestInfo): Boolean = { + if (testInfo.getDisplayName.contains("isTV2Enabled=")) { Review Comment: I wonder if we could write this one like the above method -- if it contains isTV2Enabled=true then true, otherwise, false. Then it would be a one-liner. -- 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