You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "huxihx (JIRA)" <ji...@apache.org> on 2018/08/16 00:57:00 UTC
[jira] [Commented] (KAFKA-7291) kafka-console-consumer.sh waits on
inexistent topic
[ https://issues.apache.org/jira/browse/KAFKA-7291?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16581803#comment-16581803 ]
huxihx commented on KAFKA-7291:
-------------------------------
With the latest build, ConsoleConsumer complains `Error while fetching metadata with correlation {inexistentTopic =UNKNOWN_TOPIC_OR_PARTITION}` for your case. Is that what you want?
> kafka-console-consumer.sh waits on inexistent topic
> ---------------------------------------------------
>
> Key: KAFKA-7291
> URL: https://issues.apache.org/jira/browse/KAFKA-7291
> Project: Kafka
> Issue Type: Bug
> Components: consumer
> Affects Versions: 0.8.2.2
> Reporter: HUSLEAG Dumitru
> Priority: Major
>
> Hello,
> My request concerns kafka-console-consumer.sh behavior (which I suppose is based on KafkaConsumer).
> If I try to consume from a topic that does not exist it connects and waits as if it existed, which I find is illogical.
> The broker does not have enabled *{{auto.create.topics.enable}}*
> {{Let's say I launch this command:}}
> {code}
> ./kafka-console-consumer.sh --zookeeper $(hostname):2181/kafka --topic inexistentTopic
> {code}
> and inexistentTopic does not exist indeed, then the kafka-console-consumer.sh will wait forever instead of exit with error code and display an error message saying that the topic does not exist.
> Anyway that's the way I would expect it to behave in this case.
> Please consider this request.
> Regards,
> Dumitru
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)