Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-2551

KafkaIO reader blocks indefinitely if servers are not reachable

Details

    • Bug
    • Status: Resolved
    • P2
    • Resolution: Fixed
    • 2.0.0
    • 2.1.0
    • io-java-kafka
    • None

    Description

      If the KafaIO source reader on the worker can't reach the server, Kafka consumer blocks forever inside UnboundedReader.start(). Users have no indication of the error. It is better if start() fails with an error.

      It is easy to reproduce in Kafka. I reported it on Kafka users list here : https://lists.apache.org/thread.html/98cebefacbd65b0d6c6817fe0b5197e26bc60252e72d05fced91e628@%3Cusers.kafka.apache.org%3E

      It blocks inside Kafka client. Fortunately it can be unblocked with KafkaConsumer.wakeup(). We could run initialization in another thread and cancel it if takes longer than a minute.

      Attachments

        Activity

          People

            rangadi Raghu Angadi
            rangadi Raghu Angadi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: