LiamClarkeNZ commented on a change in pull request #11920: URL: https://github.com/apache/kafka/pull/11920#discussion_r833094619
########## File path: core/src/main/scala/kafka/server/DynamicBrokerConfig.scala ########## @@ -201,7 +202,9 @@ class DynamicBrokerConfig(private val kafkaConfig: KafkaConfig) extends Logging private[server] val staticDefaultConfigs = ConfigDef.convertToStringMapWithPasswordValues(KafkaConfig.defaultValues.asJava).asScala private val dynamicBrokerConfigs = mutable.Map[String, String]() private val dynamicDefaultConfigs = mutable.Map[String, String]() - private val reconfigurables = mutable.Buffer[Reconfigurable]() + + // Use COWArrayList to prevent concurrent modification exception when reconfigurable added while iteration over list occurring + private val reconfigurables = new CopyOnWriteArrayList[Reconfigurable]() private val brokerReconfigurables = mutable.Buffer[BrokerReconfigurable]() Review comment: @dajac I've pushed changes in this regard also, all unit tests and integration tests seem happy locally, will see what the CI brings :) -- 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