Github user tdas commented on a diff in the pull request:
https://github.com/apache/spark/pull/7276#discussion_r34518306
--- Diff:
streaming/src/main/scala/org/apache/spark/streaming/receiver/ReceiverSupervisor.scala
---
@@ -161,12 +163,20 @@ private[streaming] abstract class ReceiverSupervisor(
stopReceiver("Restarting receiver with delay " + delay + "ms: " +
message, error)
logDebug("Sleeping for " + delay)
Thread.sleep(delay)
- logInfo("Starting receiver again")
- startReceiver()
- logInfo("Receiver started again")
+ val scheduledLocations = getAllowedLocations()
+ if (scheduledLocations.isEmpty || scheduledLocations.contains(host))
{
+ logInfo("Starting receiver again")
+ startReceiver()
+ logInfo("Receiver started again")
+ } else {
+ stop("Receiver is scheduled to another executor", None)
+ }
}(futureExecutionContext)
}
+ /** Reschedule this receiver and return a candidate executor list */
--- End diff --
Please update the scala docs to match the name.
---
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]