[
https://issues.apache.org/jira/browse/KAFKA-2734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14988335#comment-14988335
]
ASF GitHub Bot commented on KAFKA-2734:
---
GitHub user SinghAsDev opened a pull request:
https://github.com/apache/kafka/pull/412
KAFKA-2734: kafka-console-consumer throws NoSuchElementException on n…
…ot specifying topic
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/SinghAsDev/kafka KAFKA-2734
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/kafka/pull/412.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #412
commit 1b8522773d2ff799bb2228c5003d8fce5dcd4e86
Author: Ashish Singh
Date: 2015-11-03T22:42:21Z
KAFKA-2734: kafka-console-consumer throws NoSuchElementException on not
specifying topic
> kafka-console-consumer throws NoSuchElementException on not specifying topic
>
>
> Key: KAFKA-2734
> URL: https://issues.apache.org/jira/browse/KAFKA-2734
> Project: Kafka
> Issue Type: Bug
> Components: tools
>Affects Versions: 0.9.0.0
>Reporter: Ashish K Singh
>Assignee: Ashish K Singh
>
> The logic of argument checking is flawed for kafka-console-consumer. Throws
> below mentioned exception when topic is not specified. Users wont have a clue
> what went wrong.
> {code}
> Exception in thread "main" java.util.NoSuchElementException: head of empty
> list
> at scala.collection.immutable.Nil$.head(List.scala:337)
> at scala.collection.immutable.Nil$.head(List.scala:334)
> at
> kafka.tools.ConsoleConsumer$ConsumerConfig.(ConsoleConsumer.scala:244)
> at kafka.tools.ConsoleConsumer$.main(ConsoleConsumer.scala:40)
> at kafka.tools.ConsoleConsumer.main(ConsoleConsumer.scala)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)