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

DescribeQuorum does not return the observers (brokers) for the Metadata log

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0, 3.0.1
    • 3.3.0
    • kraft
    • None

    Description

      Background

      While working on the PR 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

      val nodeId = if (config.processRoles.contains(ControllerRole))
      { OptionalInt.of(config.nodeId) }
      else
      { OptionalInt.empty() }
      

      ToDo

      We should fix this and have the DescribeMetadata API return the brokers as observers for the metadata log.

      Attachments

        Issue Links

          Activity

            People

              Niket Goel Niket Goel
              Niket Goel Niket Goel
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: