[ 
https://issues.apache.org/jira/browse/KAFKA-7054?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16689311#comment-16689311
 ] 

ASF GitHub Bot commented on KAFKA-7054:
---------------------------------------

ManoharVanam opened a new pull request #5211: [KAFKA-7054] Kafka describe 
command should throw topic doesn't exist exception.
URL: https://github.com/apache/kafka/pull/5211
 
 
   **User Interface Improvement :** If topic doesn't exist then Kafka describe 
command should throw topic doesn't exist exception, like alter and delete 
commands
   
   ### Committer Checklist (excluded from commit message)
     - [ ] Verify design and implementation
     - [ ] Verify test coverage and CI build status
     - [ ] Verify documentation (including upgrade notes)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> 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