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


##########
tools/src/main/java/org/apache/kafka/tools/ConfigCommand.java:
##########
@@ -648,6 +658,10 @@ private static DescribeConfigContext 
describeConfigContext(String entityType, St
         } else if (GROUP_TYPE.equals(entityType)) {
             configResourceType = ConfigResource.Type.GROUP;
             dynamicConfigSource = 
ConfigEntry.ConfigSource.DYNAMIC_GROUP_CONFIG;
+        } else if (CLUSTER_MIRROR_TYPE.equals(entityType)) {
+            configResourceType = ConfigResource.Type.CLUSTER_MIRROR;
+            // TODO: ConfigEntry.ConfigSource has no dynamic source for 
cluster mirrors yet, so UNKNOWN is a placeholder

Review Comment:
   I agree with you on the wire-protocol representation and they need be kept 
aligned. 
   If someone adds a new source to only one of them:
   
   - Only the public enum: the server has no number to send for it, so the 
value can never actually arrive. Clients would always see something else
   - Only the wire enum: the client decodes the number but has no public value 
to map it to.
   
   I will keep them in aligned in this PR.



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