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

DescribeConfigs does not return error for non-existent topic

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.0
    • Fix Version/s: 2.0.0
    • Component/s: admin
    • Labels:
      None

      Description

      Sending a DescribeConfigsRequest with a ConfigResource(TOPIC, "non-existent-topic") returns a fully populated ConfigResource back in the response with 24 configuration entries.

      A resource-level error_code of UnknownTopic.. would be expected instead.

       

      [0081_admin / 1.143s] ConfigResource #0: type TOPIC (2), "rdkafkatest_rnd3df408bf5d94d696_DescribeConfigs_notexist": 24 ConfigEntries, error NO_ERROR ()
      [0081_admin / 1.144s] #0/24: Source UNKNOWN (5): "compression.type"="producer" [is read-only=n, default=n, sensitive=n, synonym=n] with 1 synonym(s)
      ....
      

      But the topic does not exist:

      $ $KAFKA_PATH/bin/kafka-topics.sh --zookeeper $ZK_ADDRESS --list | grep rdkafkatest_rnd3df408bf5d94d696_DescribeConfigs_notexist ; echo $?
      1
      
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                omkreddy Manikumar
                Reporter:
                edenhill Magnus Edenhill
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: