jolshan commented on code in PR #15657: URL: https://github.com/apache/kafka/pull/15657#discussion_r1558104084
########## core/src/main/scala/kafka/server/KafkaApis.scala: ########## @@ -2715,6 +2721,10 @@ class KafkaApis(val requestChannel: RequestChannel, } else if (!authHelper.authorize(request.context, READ, GROUP, txnOffsetCommitRequest.data.groupId)) { sendResponse(txnOffsetCommitRequest.getErrorResponse(Errors.GROUP_AUTHORIZATION_FAILED.exception)) CompletableFuture.completedFuture[Unit](()) + } else if (!metadataCache.metadataVersion().isTransactionV2Enabled && txnOffsetCommitRequest.isTransactionV2Requested) { + // If the client requests to use transaction V2 but server side does not supports it, return unsupported version. Review Comment: This can cause issues during upgrades where we flip flop the version we are using. This is why we decided not to use this approach. -- 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