-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-8606] Prevent exceptions in RDD.getPreferredLocations() from crashing DAGScheduler #7023
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
Conversation
|
AFAIK |
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.
once #7014 gets merged we can actually check the causing exception (just a random comment since I just looked at that PR, this is fine as is for now)
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.
I'm going to merge this PR now since we're going to need this string comparison in order for the regression test to run in backport branches.
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.
oh yeah, that is fine with me -- sorry I didn't mean to imply this should wait on the other PR. I was really just making a random observation, sorry if I confused things.
|
lgtm |
|
Test build #35800 has finished for PR 7023 at commit
|
|
Alright, merging this to master + backport branches. |
…rashing DAGScheduler If `RDD.getPreferredLocations()` throws an exception it may crash the DAGScheduler and SparkContext. This patch addresses this by adding a try-catch block. Author: Josh Rosen <[email protected]> Closes #7023 from JoshRosen/SPARK-8606 and squashes the following commits: 770b169 [Josh Rosen] Fix getPreferredLocations() DAGScheduler crash with try block. 44a9b55 [Josh Rosen] Add test of a buggy getPartitions() method 19aa9f7 [Josh Rosen] Add (failing) regression test for getPreferredLocations() DAGScheduler crash (cherry picked from commit 0b5abbf) Signed-off-by: Josh Rosen <[email protected]>
…rashing DAGScheduler If `RDD.getPreferredLocations()` throws an exception it may crash the DAGScheduler and SparkContext. This patch addresses this by adding a try-catch block. Author: Josh Rosen <[email protected]> Closes #7023 from JoshRosen/SPARK-8606 and squashes the following commits: 770b169 [Josh Rosen] Fix getPreferredLocations() DAGScheduler crash with try block. 44a9b55 [Josh Rosen] Add test of a buggy getPartitions() method 19aa9f7 [Josh Rosen] Add (failing) regression test for getPreferredLocations() DAGScheduler crash (cherry picked from commit 0b5abbf) Signed-off-by: Josh Rosen <[email protected]>
If
RDD.getPreferredLocations()throws an exception it may crash the DAGScheduler and SparkContext. This patch addresses this by adding a try-catch block.