chia7712 commented on code in PR #16250:
URL: https://github.com/apache/kafka/pull/16250#discussion_r1635327471
##########
clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java:
##########
@@ -2760,9 +2760,10 @@ void handleFailure(Throwable throwable) {
}, now);
}
- return new DescribeConfigsResult(new
HashMap<>(nodeFutures.entrySet().stream()
- .flatMap(x -> x.getValue().entrySet().stream())
- .collect(Collectors.toMap(Map.Entry::getKey,
Map.Entry::getValue))));
+ return new DescribeConfigsResult(nodeFutures.entrySet()
Review Comment:
Please take a look at previous discussion:
https://github.com/apache/kafka/pull/16250#issuecomment-2157809066
We need to make it create modifiable map explicitly.
--
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]