[ 
https://issues.apache.org/jira/browse/KAFKA-7054?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Manohar Vanam updated KAFKA-7054:
---------------------------------
    Description: 
If topic doesn't exist then Kafka describe command should throw topic doesn't 
exist exception.

like alter and delete commands :
{code:java}
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$){code}

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


> Kafka describe command should throw topic doesn't exist exception.
> ------------------------------------------------------------------
>
>                 Key: KAFKA-7054
>                 URL: https://issues.apache.org/jira/browse/KAFKA-7054
>             Project: Kafka
>          Issue Type: Improvement
>          Components: admin
>            Reporter: Manohar Vanam
>            Priority: Minor
>
> If topic doesn't exist then Kafka describe command should throw topic doesn't 
> exist exception.
> like alter and delete commands :
> {code:java}
> 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$){code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to