OmniaGM commented on code in PR #23843:
URL: https://github.com/apache/kafka/pull/23843#discussion_r4341797381
##########
mirror-coordinator/src/main/java/org/apache/kafka/coordinator/mirror/ClusterMirrorBrokerConfig.java:
##########
@@ -100,11 +100,51 @@ public class ClusterMirrorConfigs {
.defineInternal(MIRROR_FAILED_RETRY_MAX_BACKOFF_MS_CONFIG, LONG,
MIRROR_FAILED_RETRY_MAX_BACKOFF_MS_DEFAULT, atLeast(1L), MEDIUM,
MIRROR_FAILED_RETRY_MAX_BACKOFF_MS_DOC)
.defineInternal(MIRROR_FAILED_RETRY_MAX_ATTEMPTS_CONFIG, INT,
MIRROR_FAILED_RETRY_MAX_ATTEMPTS_DEFAULT, between(0, Short.MAX_VALUE), MEDIUM,
MIRROR_FAILED_RETRY_MAX_ATTEMPTS_DOC);
- /**
- * Broker-level mirror configurations.
- * This is merged into AbstractKafkaConfig for validation.
- */
- public static ConfigDef brokerConfigDef() {
- return new ConfigDef(BROKER_CONFIG_DEF);
+ public ClusterMirrorBrokerConfig(Properties properties) {
+ super(CONFIG_DEF, properties);
Review Comment:
Nit: this uses the `AbstractConfig` constructor with `doLog=true`, so it
logs every config value each time it's built. Should it pass false here?
--
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]