dielhennr commented on a change in pull request #11179: URL: https://github.com/apache/kafka/pull/11179#discussion_r683894514
########## File path: core/src/test/scala/unit/kafka/server/KafkaConfigTest.scala ########## @@ -262,6 +262,8 @@ class KafkaConfigTest { props.put(KafkaConfig.ProcessRolesProp, "controller") props.put(KafkaConfig.ListenersProp, "PLAINTEXT://127.0.0.1:9092") props.put(KafkaConfig.NodeIdProp, "1") + props.setProperty(KafkaConfig.QuorumVotersProp, "1@localhost:9092") Review comment: `props.put` ########## File path: core/src/test/scala/unit/kafka/server/ControllerApisTest.scala ########## @@ -96,6 +96,7 @@ class ControllerApisTest { props.put(KafkaConfig.NodeIdProp, nodeId: java.lang.Integer) props.put(KafkaConfig.ProcessRolesProp, "controller") props.put(KafkaConfig.ControllerListenerNamesProp, "PLAINTEXT") + props.put(KafkaConfig.QuorumVotersProp, s"${nodeId}@localhost:9093") Review comment: remove brackets from `nodeId` string interpolation ########## File path: core/src/test/scala/unit/kafka/server/KafkaApisTest.scala ########## @@ -132,6 +132,8 @@ class KafkaApisTest { val properties = TestUtils.createBrokerConfig(brokerId, "") properties.put(KafkaConfig.NodeIdProp, brokerId.toString) properties.put(KafkaConfig.ProcessRolesProp, "broker") + val voterId = (brokerId + 1) + properties.setProperty(KafkaConfig.QuorumVotersProp, s"$voterId@localhost:9093") Review comment: `props.put` ########## File path: core/src/test/scala/unit/kafka/server/KafkaConfigTest.scala ########## @@ -1091,6 +1093,7 @@ class KafkaConfigTest { val largeBrokerId = 2000 val props = new Properties() props.put(KafkaConfig.ProcessRolesProp, "broker") + props.setProperty(KafkaConfig.QuorumVotersProp, "2@localhost:9093") Review comment: Use `props.put` to stay consistent with method -- 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