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

Consumer poll hangs forever if kafka is disabled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Not A Problem
    • 0.9.0.1, 0.10.0.1
    • None
    • clients, consumer
    • None

    Description

      We develop web application, where client sends REST request and our application downloads messages from Kafka and sends those messages back to client. In our web application we use "New Consumer API" (not High Level nor Simple Consumer API).
      Problem occurs in case of disabling Kafka and web application is running on. Application receives request and tries to poll messages from Kafka. Processing is on that line blocked until Kafka is enabled.

      ConsumerRecords<byte[], byte[]> records = consumer.poll(1000);

      Timeout parameter of the poll method has no influence in such case. I expect poll method could throw some Exception describing about connection issues.

      Attachments

        Activity

          People

            Unassigned Unassigned
            tomasbenc Tomas Benc
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: