mumrah commented on code in PR #15744: URL: https://github.com/apache/kafka/pull/15744#discussion_r1590396620
########## core/src/main/scala/kafka/zk/KafkaZkClient.scala: ########## @@ -467,13 +474,42 @@ class KafkaZkClient private[zk] (zooKeeperClient: ZooKeeperClient, isSecure: Boo * @param rootEntityType entity type * @param sanitizedEntityName entity name * @throws KeeperException if there is an error while setting or creating the znode + * @throws ControllerMovedException if no controller is defined, or a KRaft controller is defined */ def setOrCreateEntityConfigs(rootEntityType: String, sanitizedEntityName: String, config: Properties): Unit = { + val controllerZkVersion = if (!enableEntityConfigNoController) { Review Comment: We still need to support `kafka-config.sh --zookeeper` until 4.0. Previously, it was possible to set configs with the tools even if the cluster wasn't running. This flag lets us configure the whole KafkaZkClient in CommandConfig to allow this behavior. Otherwise, it's disabled. -- 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