Github user tdas commented on a diff in the pull request:
https://github.com/apache/spark/pull/1693#discussion_r17197419
--- Diff:
streaming/src/main/scala/org/apache/spark/streaming/scheduler/ReceiverTracker.scala
---
@@ -272,7 +272,15 @@ class ReceiverTracker(ssc: StreamingContext) extends
Logging {
// Distribute the receivers and start them
logInfo("Starting " + receivers.length + " receivers")
- ssc.sparkContext.runJob(tempRDD, startReceiver)
+ try {
+ ssc.sparkContext.runJob(tempRDD, startReceiver)
+ } catch {
+ case e : Throwable =>
+ logError("receiver job crashed, detail:" + e.getStackTraceString)
--- End diff --
Actually there is a better way to report this error.
`streamingContext.awaitTermination() can be made to throw the exception. Call
`waiter.notifyError(exception)` which will unblock
`streamingContext.awaitTermination()` and let the user handle whether to stop
and exit or not.
---
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]