Icewind52 commented on code in PR #24340: URL: https://github.com/apache/kafka/pull/24340#discussion_r4704108054
########## clients/src/main/resources/common/message/CreateAclsRequest.json: ########## @@ -22,7 +22,8 @@ // Version 1 adds resource pattern type. // Version 2 enables flexible versions. // Version 3 adds user resource type. - "validVersions": "1-3", + // Version 4 adds the cluster mirror resource type (KIP-1279). + "validVersions": "1-4", Review Comment: Thanks! Added the check for CreateAcls/DescribeAcls/DeleteAcls. Building a request with CLUSTER_MIRROR at version < 4 throws UnsupportedProtocolFieldException, a subtype of UnsupportedVersionException. Resource types that need a newer version are listed in one map in RequestUtils, used by all three requests. Existing types aren't in it, so their behavior is unchanged. A test fails if a new ResourceType is added without being marked as baseline or given a minimum version. While doing this I noticed USER (added in v3 by KIP-373) was never validated the same way. Is it worth of opening an issue to track this? -- 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]
