m1a2st commented on code in PR #20334:
URL: https://github.com/apache/kafka/pull/20334#discussion_r2307042233
##########
server/src/main/java/org/apache/kafka/server/config/AbstractKafkaConfig.java:
##########
@@ -137,7 +144,8 @@ public Map<ListenerName, SecurityProtocol>
effectiveListenerSecurityProtocolMap(
// 2. No SSL or SASL protocols are used in regular listeners
(Note: controller listeners
// are not included in 'listeners' config when
process.roles=broker)
if
(controllerListenerNames().stream().anyMatch(AbstractKafkaConfig::isSslOrSasl)
||
-
Csv.parseCsvList(getString(SocketServerConfigs.LISTENERS_CONFIG)).stream()
+ getList(SocketServerConfigs.LISTENERS_CONFIG).stream()
+ .map(String::trim)
Review Comment:
We should remove the `trim()` 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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]