mumrah commented on code in PR #12965:
URL: https://github.com/apache/kafka/pull/12965#discussion_r1044604344
##########
core/src/main/scala/kafka/server/KafkaConfig.scala:
##########
@@ -2230,8 +2230,15 @@ class KafkaConfig private(doLog: Boolean, val props:
java.util.Map[_, _], dynami
validateAdvertisedListenersNonEmptyForBroker()
} else {
// ZK-based
- // controller listener names must be empty when not in KRaft mode
- require(controllerListenerNames.isEmpty,
s"${KafkaConfig.ControllerListenerNamesProp} must be empty when not running in
KRaft mode: ${controllerListenerNames.asJava}")
+ if (migrationEnabled) {
+ validateNonEmptyQuorumVotersForKRaft()
+ require(controllerListenerNames.nonEmpty,
Review Comment:
oh, i typoed the description. the code is correct i think:
`validateNonEmptyQuorumVotersForKRaft` `controllerListenerNames.nonEmpty`
--
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]