Niket Goel created KAFKA-13986: ---------------------------------- Summary: DescribeQuorum does not return the observers (brokers) for the Metadata log Key: KAFKA-13986 URL: https://issues.apache.org/jira/browse/KAFKA-13986 Project: Kafka Issue Type: Improvement Components: kraft Affects Versions: 3.0.1, 3.0.0 Reporter: Niket Goel
h2. Background While working on the [PR|https://github.com/apache/kafka/pull/12206] for KIP-836, we realized that the `DescribeQuorum` API does not return the brokers as observers for the metadata log. As noted by [~dengziming] : _We set nodeId=-1 if it's a broker so observers.size==0_ The related code is: [https://github.com/apache/kafka/blob/4c9eeef5b2dff9a4f0977fbc5ac7eaaf930d0d0e/core/src/main/scala/kafka/raft/RaftManager.scala#L185-L189] {code:java} val nodeId = if (config.processRoles.contains(ControllerRole)) { OptionalInt.of(config.nodeId) } else { OptionalInt.empty() } {code} h2. ToDo We should fix this and have the DescribeMetadata API return the brokers as observers for the metadata log. -- This message was sent by Atlassian Jira (v8.20.7#820007)