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

Kafka describe command should throw topic doesn't exist exception.

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.0
    • Component/s: admin
    • Labels:
      None

      Description

      If topic doesn't exist thenĀ Kafka describe command should throw topic doesn't exist exception.

      like alter and delete commands :

      local:bin mvanam$ ./kafka-topics.sh --zookeeper localhost:2181 --delete --topic manu
      Error while executing topic command : Topic manu does not exist on ZK path localhost:2181
      [2018-06-13 15:08:13,111] ERROR java.lang.IllegalArgumentException: Topic manu does not exist on ZK path localhost:2181
       at kafka.admin.TopicCommand$.getTopics(TopicCommand.scala:91)
       at kafka.admin.TopicCommand$.deleteTopic(TopicCommand.scala:184)
       at kafka.admin.TopicCommand$.main(TopicCommand.scala:71)
       at kafka.admin.TopicCommand.main(TopicCommand.scala)
       (kafka.admin.TopicCommand$)
      local:bin mvanam$ ./kafka-topics.sh --zookeeper localhost:2181 --alter --topic manu
      Error while executing topic command : Topic manu does not exist on ZK path localhost:2181
      [2018-06-13 15:08:43,663] ERROR java.lang.IllegalArgumentException: Topic manu does not exist on ZK path localhost:2181
       at kafka.admin.TopicCommand$.getTopics(TopicCommand.scala:91)
       at kafka.admin.TopicCommand$.alterTopic(TopicCommand.scala:125)
       at kafka.admin.TopicCommand$.main(TopicCommand.scala:65)
       at kafka.admin.TopicCommand.main(TopicCommand.scala)
       (kafka.admin.TopicCommand$)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ManoharVanam Manohar Vanam
                Reporter:
                ManoharVanam Manohar Vanam
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: