rreddy-22 commented on code in PR #17402: URL: https://github.com/apache/kafka/pull/17402#discussion_r1806976516
########## 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: Ohh I followed the kraftQuorum style, mainly so we could set a default for the tests. In the formatter I set the TV using the testInfo, if the param doesn't exist we default to false. -- 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