You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Guozhang Wang (JIRA)" <ji...@apache.org> on 2014/01/02 20:55:52 UTC

[jira] [Commented] (KAFKA-1198) NullPointerException in describe topic

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

Guozhang Wang commented on KAFKA-1198:
--------------------------------------

1) List option will always get all the topics, only describe option will take the topic specification.

2) the getTopics function does not check if opts.topicOpt is specified, and hence throws the NullPointerException.

Proposed solution: check topicOpt unless it is the list option.

> NullPointerException in describe topic
> --------------------------------------
>
>                 Key: KAFKA-1198
>                 URL: https://issues.apache.org/jira/browse/KAFKA-1198
>             Project: Kafka
>          Issue Type: Bug
>    Affects Versions: 0.8.1
>            Reporter: Jun Rao
>
> If topic is not specified, we get the following.
> bin/kafka-topics.sh --zookeeper localhost:2181 --describe
> (Error while executing topic command,java.lang.NullPointerException)
> Also, list topic seems to always list all topics even when topics are specified.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)