Skip to content
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

Closed
wants to merge 4 commits into from

Conversation

joyyoj
Copy link
Contributor

@joyyoj joyyoj commented Jul 31, 2014

No description provided.

@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@joyyoj joyyoj changed the title Spark 2381 [Spark 2381] stop the application if streaming receiver job failed Jul 31, 2014
@joyyoj joyyoj changed the title [Spark 2381] stop the application if streaming receiver job failed [Spark 2381] stop the streaming application if the receiver job failed Jul 31, 2014
@tdas
Copy link
Contributor

tdas commented Jul 31, 2014

Can you please add unit test for this change.

@tdas
Copy link
Contributor

tdas commented Aug 1, 2014

Also could you change the title to contain "SPARK-2381" (withi -)

@joyyoj
Copy link
Contributor Author

joyyoj commented Aug 5, 2014

Ok, I'll do it soon

@joyyoj joyyoj changed the title [Spark 2381] stop the streaming application if the receiver job failed [Spark-2381] stop the streaming application if the receiver job failed Aug 5, 2014
@tdas
Copy link
Contributor

tdas commented Sep 5, 2014

Jenkins, this is ok to test.

@tdas
Copy link
Contributor

tdas commented Sep 5, 2014

@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 =>
Copy link
Contributor

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

@SparkQA
Copy link

SparkQA commented Sep 5, 2014

Can one of the admins verify this patch?

@tdas
Copy link
Contributor

tdas commented Sep 25, 2014

@joyyoj any updates on this?

@tdas
Copy link
Contributor

tdas commented Nov 7, 2014

@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)
Copy link
Member

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

@asfgit asfgit closed this in f73b56f Nov 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants