Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-7788

Streaming | Kinesis | KinesisReceiver blocks in onStart

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 1.3.0, 1.3.1
    • 1.4.0
    • DStreams

    Description

      KinesisReceiver calls worker.run() which is a blocking call (while loop) as per source code of kinesis-client library - https://github.com/awslabs/amazon-kinesis-client/blob/v1.2.1/src/main/java/com/amazonaws/services/kinesis/clientlibrary/lib/worker/Worker.java.

      This results in infinite loop while calling sparkStreamingContext.stop(stopSparkContext = false, stopGracefully = true) perhaps because ReceiverTracker is never able to register the receiver (it's receiverInfo field is a empty map) causing it to be stuck in infinite loop while waiting for running flag to be set to false.

      Also, we should investigate a way to have receiver restart in case of failures.

      Attachments

        Activity

          People

            tdas Tathagata Das
            aniket Aniket Bhatnagar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: