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

DescribeLogDirsResponseData#results#topics have unexpected topics having empty partitions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 3.8.0, 3.7.1, 3.9.0
    • None
    • None

    Description

      ReplicaManager [0] could generate a response having unexpected topics which have empty partitions. The root cause is it always generate the topic collection even though they have no matched partitions.

      That is not a issue to Kafka clients, since we loop the "partitions" to fill all future responses [1]. Hence, those unexpected topics won't be existent in the final results.

      However, that could be a issue to the users who implement Kafka client based on Kafka protocol [2]

      [0] https://github.com/apache/kafka/blob/trunk/core/src/main/scala/kafka/server/ReplicaManager.scala#L1252
      [1] https://github.com/apache/kafka/blob/b5a013e4564ad93026b9c61431e4573a39bec766/clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java#L3145
      [2] https://lists.apache.org/thread/lp7ktmm17pbg7nqk7p4s904lcn3mrvhy

      Attachments

        Issue Links

          Activity

            People

              m1a2st 黃竣陽
              chia7712 Chia-Ping Tsai
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: