jolshan commented on code in PR #17402:
URL: https://github.com/apache/kafka/pull/17402#discussion_r1819480789
##########
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:
Can we make this the one liner? It would still have a default as false. Or
we can do it the other way around. (Right now default seems to be true)
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]