You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Aniket Bhatnagar (JIRA)" <ji...@apache.org> on 2015/05/21 10:29:59 UTC

[jira] [Created] (SPARK-7788) Streaming | Kinesis | KinesisReceiver blocks in onStart

Aniket Bhatnagar created SPARK-7788:
---------------------------------------

             Summary: Streaming | Kinesis | KinesisReceiver blocks in onStart
                 Key: SPARK-7788
                 URL: https://issues.apache.org/jira/browse/SPARK-7788
             Project: Spark
          Issue Type: Bug
          Components: Streaming
    Affects Versions: 1.3.1, 1.3.0
            Reporter: Aniket Bhatnagar


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. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org