Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-7291

kafka-console-consumer.sh waits on inexistent topic

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.8.2.2
    • None
    • consumer
    • None

    Description

      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:

      ./kafka-console-consumer.sh --zookeeper $(hostname):2181/kafka --topic inexistentTopic
      

      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

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            douxmietrou HUSLEAG Dumitru
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: