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
- links to