GitHub user viirya opened a pull request:
https://github.com/apache/spark/pull/4467
[SPARK-5681][Streaming] Add tracker status and stop to receive messages
when stopping tracker
Related to #4364.
Sometimes the receiver will be registered into tracker after `ssc.stop()`
is called. Especially when `stop()` is called immediately after `start()`. So
the receiver doesn't get the `StopReceiver` message from the tracker. In this
case, when you call `stop()` in graceful mode, `stop()` would get stuck
indefinitely.
This pr adds a status to `ReceiverTracker` and asks `ReceiverTracker` stop
to receive messages when stopping.
This also adds a timeout check to `ReceiverLauncher.stop`.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/viirya/spark-1 tracker_status_timeout
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/4467.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #4467
----
commit 77983f35c634083d5a0398bd86f6f594221bba7a
Author: Liang-Chi Hsieh <[email protected]>
Date: 2015-02-09T07:43:18Z
Add tracker status and stop to receive messages when stopping tracker.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]