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-16304] LinkageError should not crash Spark executor #13982

Closed
wants to merge 2 commits into from

Conversation

petermaxlee
Copy link
Contributor

What changes were proposed in this pull request?

This patch updates the failure handling logic so Spark executor does not crash when seeing LinkageError.

How was this patch tested?

Added an end-to-end test in FailureSuite.

@SparkQA
Copy link

SparkQA commented Jun 30, 2016

Test build #3149 has finished for PR 13982 at commit 45f5003.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@rxin
Copy link
Contributor

rxin commented Jun 30, 2016

cc @JoshRosen and @ericl

@@ -1872,6 +1872,12 @@ private[spark] object Utils extends Logging {
}
}

/** Returns true if the given exception is a linkage error. */
def isLinkageError(e: Throwable): Boolean = e match {
case _: java.lang.LinkageError => true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can just be e.instanceOf[LinkageError] but an entire method for this is not appropriate

@SparkQA
Copy link

SparkQA commented Jul 1, 2016

Test build #3160 has finished for PR 13982 at commit 050e524.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@rxin
Copy link
Contributor

rxin commented Jul 6, 2016

@srowen any more feedback?

@srowen
Copy link
Member

srowen commented Jul 6, 2016

I don't feel strongly about it. It's something easy to revisit later to change if it turns out special-casing this is undesirable.

@rxin
Copy link
Contributor

rxin commented Jul 6, 2016

Alright merging in master. Thanks.

@asfgit asfgit closed this in 480357c Jul 6, 2016
zzcclp added a commit to zzcclp/spark that referenced this pull request Jul 7, 2016
@zsxwing
Copy link
Member

zsxwing commented Oct 26, 2016

@rxin any objection to merge this one into 2.0? I noticed sometimes spark-shell will throw NoClassDefFoundError(a subclass of LinkageError) which just crashes the executor.

@rxin
Copy link
Contributor

rxin commented Oct 26, 2016

No objection.

On Wednesday, October 26, 2016, Shixiong Zhu notifications@github.com
wrote:

@rxin https://github.com/rxin any objection to merge this one into 2.0?
I noticed sometimes spark-shell will throw NoClassDefFoundError(a
subclass of LinkageError) which just crashes the executor.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#13982 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AATvPCFOsMrYaPmxf3VwHWN-H7MDsndJks5q3pwKgaJpZM4JBp3m
.

@zsxwing
Copy link
Member

zsxwing commented Oct 26, 2016

thanks! Merging to 2.0.

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