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

Streaming | Kinesis | KinesisReceiver blocks in onStart

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.3.0, 1.3.1
    • Fix Version/s: 1.4.0
    • Component/s: DStreams
    • Labels:
    • Target Version/s:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: