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

Console consumer hangs if not existing partition is specified

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Do
    • None
    • None
    • tools
    • None

    Description

      Hi,
      if I specify the --partition option for the console consumer with a not existing partition for a topic, the application hangs indefinitely.
      Debugging the code I see that it asks for metadata but when it receives topic information and it doesn't find the requested partition inside such metadata, the code retries new time.
      Could be it worst to check if the partition exists using the partitionFor method before calling the assign in the seek of the BaseConsumer and throwing an exception so printing an error on the console ?

      Thanks,
      Paolo

      Attachments

        Activity

          People

            ppatierno Paolo Patierno
            ppatierno Paolo Patierno
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: