[
https://issues.apache.org/jira/browse/KAFKA-16917?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chia-Ping Tsai resolved KAFKA-16917.
------------------------------------
Fix Version/s: 3.9.0
Resolution: Fixed
> DescribeTopicsResult should use mutable map in order to keep compatibility
> --------------------------------------------------------------------------
>
> Key: KAFKA-16917
> URL: https://issues.apache.org/jira/browse/KAFKA-16917
> Project: Kafka
> Issue Type: Improvement
> Reporter: Chia-Ping Tsai
> Assignee: TengYao Chi
> Priority: Minor
> Fix For: 3.9.0
>
>
> *new target*
> DescribeTopicsResult returned mutable map before, and it was changed to
> immutable map exceptionally. Hence, we should revert it back to mutable map.
> *origin target*
> This jira includes following issues:
> # KafkaAdminClient#alterClientQuotas [0] return a immutable map, but other
> APIs return `HashMap`.
> # KafkaAdminClient#describeConfigs [1] has duplicate copy. the returned
> stuff from `Collectors.toMap` is a new HashMap already.
>
> [0]
> [https://github.com/apache/kafka/blob/d13a693ea768fa8013240dc39bc21db92bffc31f/clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java#L4074]
> [1]
> [https://github.com/apache/kafka/blob/d13a693ea768fa8013240dc39bc21db92bffc31f/clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java#L2763]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)