CalvinConfluent commented on code in PR #19355: URL: https://github.com/apache/kafka/pull/19355#discussion_r2066907375
########## clients/src/main/java/org/apache/kafka/common/requests/ListTransactionsRequest.java: ########## @@ -38,6 +38,10 @@ public ListTransactionsRequest build(short version) { throw new UnsupportedVersionException("Duration filter can be set only when using API version 1 or higher." + " If client is connected to an older broker, do not specify duration filter or set duration filter to -1."); } + if (data.transactionalIdPattern() != null && version < 2) { + throw new UnsupportedVersionException("Transactional ID pattern filter can be set only when using API version 1 or higher." + + " If client is connected to an older broker, do not specify the pattern filter."); Review Comment: Thanks! Good catch! Updated. -- 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