chia7712 commented on code in PR #19932:
URL: https://github.com/apache/kafka/pull/19932#discussion_r2139776351
##########
core/src/test/scala/integration/kafka/server/KRaftClusterTest.scala:
##########
@@ -130,6 +130,27 @@ class KRaftClusterTest {
}
}
+ @Test
+ def testClusterWithLowerCaseListeners(): Unit = {
+ Using.resource(new KafkaClusterTestKit.Builder(
+ new TestKitNodes.Builder().
+ setNumBrokerNodes(1).
+ setBrokerListenerName(new ListenerName("external")).
+ setNumControllerNodes(3).
+ build()).build()
+ ) { cluster =>
+ cluster.format()
+ cluster.startup()
+ TestUtils.waitUntilTrue(() => cluster.brokers().get(0).brokerState ==
BrokerState.RUNNING,
Review Comment:
What we want to test is to add a lower-case listener name to the broker
configuration and then ensure it works. Therefore, could you please ensure the
"external" is NOT converted to upper case when creating the embedded kafka? For
example, you could check the value of `listeners` or
`inter.broker.listener.name` within the `KafkaConfig`.
--
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]