chia7712 commented on code in PR #24248:
URL: https://github.com/apache/kafka/pull/24248#discussion_r4582064312


##########
clients/src/main/java/org/apache/kafka/common/config/ConfigResource.java:
##########
@@ -36,6 +36,7 @@ public final class ConfigResource {
      * Type of resource.
      */
     public enum Type {
+        CLUSTER_MIRROR((byte) 64),

Review Comment:
   Since this is a public API change, the id "64" will be converted from 
`UNKNOWN` to `CLUSTER_MIRROR`. Therefore, would you mind updating 
`ControllerApis#authorizeAlterResource` to return the same error code 
(`UNSUPPORTED_VERSION`) as before? Could you also add a test for it?
   
   ```scala
   case ConfigResource.Type.CLUSTER_MIRROR =>
     new ApiError(UNSUPPORTED_VERSION, "Cluster mirror configs are not 
supported yet.")
   case rt => new ApiError(INVALID_REQUEST, s"Unexpected resource type $rt.")
   ```



-- 
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]

Reply via email to