Github user tdas commented on a diff in the pull request:
https://github.com/apache/spark/pull/4467#discussion_r24468323
--- Diff:
streaming/src/main/scala/org/apache/spark/streaming/scheduler/ReceiverTracker.scala
---
@@ -202,16 +232,21 @@ class ReceiverTracker(ssc: StreamingContext,
skipReceiverLaunch: Boolean = false
/** Actor to receive messages from the receivers. */
private class ReceiverTrackerActor extends Actor {
def receive = {
- case RegisterReceiver(streamId, typ, host, receiverActor) =>
- registerReceiver(streamId, typ, host, receiverActor, sender)
- sender ! true
- case AddBlock(receivedBlockInfo) =>
- sender ! addBlock(receivedBlockInfo)
- case ReportError(streamId, message, error) =>
- reportError(streamId, message, error)
- case DeregisterReceiver(streamId, message, error) =>
- deregisterReceiver(streamId, message, error)
- sender ! true
+ // Actor stops to receive when tracker is stopping
+ if (!isTrackerStopping) {
--- End diff --
I dont get the logic here. If the tracker is in "stopping", then it should
receive deregister messages. But stops it from receiving, isnt it?
---
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]