Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-16917

DescribeTopicsResult should use mutable map in order to keep compatibility

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.9.0
    • None
    • None

    Description

      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:

      1. KafkaAdminClient#alterClientQuotas [0] return a immutable map, but other APIs return `HashMap`.
      2. 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

      Attachments

        Issue Links

          Activity

            People

              frankvicky TengYao Chi
              chia7712 Chia-Ping Tsai
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: