-
Notifications
You must be signed in to change notification settings - Fork 14.5k
MINOR: add lower case lister name integration test #19932
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
a7133c0
de10c94
0dea88b
081064f
f406914
b68eb29
f8c3dca
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -556,7 +556,7 @@ public String bootstrapServers() { | |
int brokerId = entry.getKey(); | ||
BrokerServer broker = entry.getValue(); | ||
ListenerName listenerName = nodes.brokerListenerName(); | ||
int port = broker.boundPort(listenerName); | ||
int port = broker.boundPort(ListenerName.normalised(listenerName.value())); | ||
chia7712 marked this conversation as resolved.
Show resolved
Hide resolved
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you please add comments to explain the behavior? Also, the controller listener name needs comment too. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
line#578 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated it. Thanks. |
||
if (port <= 0) { | ||
throw new RuntimeException("Broker " + brokerId + " does not yet " + | ||
"have a bound port for " + listenerName + ". Did you start " + | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
orinter.broker.listener.name
within theKafkaConfig
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the suggestion. I add some new assertions for
listeners
,inter.broker.listener.name
, andlistener.security.protocol.map
.