Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-3595

Kafka09 consumer thread does not interrupt when stuck in record emission

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.0.0
    • 1.0.1, 1.1.0
    • Connectors / Kafka
    • None

    Description

      When canceling a job, the Kafka 0.9 Consumer Thread may be stuck in a blocking method (output emitting) and never wakes up.

      The thread as a whole cannot be simply interrupted, because of a bug in Kafka that makes the consumer freeze/hang up on interrupt.

      There are two possible solutions:

      • allow and call interrupt when the consumer thread is emitting elements
      • destroy the output network buffer pools eagerly on canceling. The Kafka thread will then throw an exception if it is stuck in emitting elements and it will terminate, which is accepted in case the status is canceled.

      Attachments

        Activity

          People

            uce Ufuk Celebi
            sewen Stephan Ewen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: