Icewind52 commented on code in PR #24340:
URL: https://github.com/apache/kafka/pull/24340#discussion_r4678419088


##########
clients/src/main/java/org/apache/kafka/common/resource/ResourceType.java:
##########
@@ -66,7 +66,12 @@ public enum ResourceType {
     /**
      * A user principal
      */
-    USER((byte) 7);
+    USER((byte) 7),
+
+    /**
+     * A cluster mirror.
+     */
+    CLUSTER_MIRROR((byte) 8);

Review Comment:
   This is a good catch. I have added CLUSTER_MIRROR with all the operations 
listed in the KIP. Also added a new unit test class to verify the following:
   1. testEveryConcreteResourceTypeHasSupportedOperations
   2. testClusterMirror for both positive/negative cases



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