-
Notifications
You must be signed in to change notification settings - Fork 28.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Spark-2381] stop the streaming application if the receiver job failed #1693
Conversation
Can one of the admins verify this patch? |
Can you please add unit test for this change. |
Also could you change the title to contain "SPARK-2381" (withi -) |
Ok, I'll do it soon |
Jenkins, this is ok to test. |
@joyyoj Can you please add an unit test for this behavior in the StremaingContextSuite, this is a significant change in the program behavior and should have a unit test. |
try { | ||
ssc.sparkContext.runJob(tempRDD, startReceiver) | ||
} catch { | ||
case e : Throwable => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Scala uses throwable for control flow, so throwable should never be caught in a Scala program. Please catch Exception
Can one of the admins verify this patch? |
@joyyoj any updates on this? |
@joyyoj If you are unable to address the comments on this PR, mind closing this? |
logError("receiver job crashed, detail:" + e.getStackTraceString) | ||
// find a better way to stop the application ? make other stages depend on tempRdd ? | ||
ssc.stop() | ||
System.exit(1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't System.exit
here
No description provided.