OmniaGM commented on code in PR #24247:
URL: https://github.com/apache/kafka/pull/24247#discussion_r4641692589
##########
tools/src/main/java/org/apache/kafka/tools/ConfigCommand.java:
##########
@@ -648,6 +661,9 @@ 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;
+ dynamicConfigSource =
ConfigEntry.ConfigSource.DYNAMIC_CLUSTER_MIRROR_CONFIG;
Review Comment:
Just to clarify, is the broker side of describe for `CLUSTER_MIRROR` tracked
in a Jira (I couldn't find one under KAFKA-20186, @fvaleri do you know if we
have one)? I think this filter only shows entries with
`DYNAMIC_CLUSTER_MIRROR_CONFIG`, so the server will need to return
`CLUSTER_MIRROR_CONFIG` as the source, otherwise `--describe` without `--all`
would print nothing. Maybe worth linking it here.
##########
tools/src/main/java/org/apache/kafka/tools/ConfigCommand.java:
##########
@@ -897,6 +914,9 @@ private static String formatConfigNames(Collection<String>
names) {
clientMetrics = parser.accepts("client-metrics", "The client
metrics config resource name.")
.withRequiredArg()
.ofType(String.class);
+ clusterMirror = parser.accepts("cluster-mirror", "The cluster
mirror's name.")
Review Comment:
Small one: `--cluster-mirror` isn't in the KIP yet (it only shows
`--entity-type cluster-mirrors`). Makes sense to have it like
`--group`/`--client-metrics`; I'll add it to the KIP's tools section.
--
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]