abbccdda commented on a change in pull request #9560: URL: https://github.com/apache/kafka/pull/9560#discussion_r518264048
########## File path: core/src/main/scala/kafka/server/DynamicBrokerConfig.scala ########## @@ -331,6 +334,50 @@ class DynamicBrokerConfig(private val kafkaConfig: KafkaConfig) extends Logging } } + private[server] def maybeAugmentSslStorePaths(configProps: Properties, previousConfigProps: Map[String, String]): Unit ={ + val processedFiles = new mutable.HashSet[String] + reconfigurables + .filter(reconfigurable => ReloadableFileConfigs.exists(reconfigurable.reconfigurableConfigs.contains)) + .foreach({ + case reconfigurable: ListenerReconfigurable => + ReloadableFileConfigs.foreach(configName => { + val prefixedName = reconfigurable.listenerName.configPrefix + configName + if (!processedFiles.contains(prefixedName) && configProps.containsKey(prefixedName) && Review comment: @rajinisivaram One case I'm not covering here is that whether we should compare the entire `configProps` with `previousConfigProps` first and skip the augment path when they are the same. Right now I'm only comparing the path change of key/trust store, do you think we should do the comparison on entire config change first? ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org