mdedetrich commented on code in PR #12063: URL: https://github.com/apache/kafka/pull/12063#discussion_r852818277
########## core/src/main/scala/kafka/server/metadata/BrokerMetadataPublisher.scala: ########## @@ -187,21 +189,26 @@ class BrokerMetadataPublisher(conf: KafkaConfig, toLoggableProps(resource, props).mkString(",")) dynamicConfigHandlers(ConfigType.Topic). processConfigChanges(resource.name(), props) - conf.dynamicConfig.reloadUpdatedFilesWithoutConfigChange(props) - case BROKER => if (resource.name().isEmpty) { - // Apply changes to "cluster configs" (also known as default BROKER configs). - // These are stored in KRaft with an empty name field. - info(s"Updating cluster configuration : " + - toLoggableProps(resource, props).mkString(",")) - dynamicConfigHandlers(ConfigType.Broker). - processConfigChanges(ConfigEntityName.Default, props) - } else if (resource.name().equals(brokerId.toString)) { - // Apply changes to this broker's dynamic configuration. - info(s"Updating broker ${brokerId} with new configuration : " + - toLoggableProps(resource, props).mkString(",")) - dynamicConfigHandlers(ConfigType.Broker). - processConfigChanges(resource.name(), props) - } + case BROKER => + if (resource.name().isEmpty) { + // Apply changes to "cluster configs" (also known as default BROKER configs). + // These are stored in KRaft with an empty name field. + info(s"Updating cluster configuration : " + + toLoggableProps(resource, props).mkString(",")) + dynamicConfigHandlers(ConfigType.Broker). + processConfigChanges(ConfigEntityName.Default, props) + } else if (resource.name().equals(brokerId.toString)) { Review Comment: I echo this, in Scala pretty much **no one** uses `equals`. Scala overrides `==` so that it always uses `equals` and that is the normal way of doing non reference object comparison. -- 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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org