-
Notifications
You must be signed in to change notification settings - Fork 29.1k
[SPARK-31485][CORE][FOLLOW-UP] Also refer blacklisting in error message if barrier scheduling fail #28476
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
Closed
Closed
[SPARK-31485][CORE][FOLLOW-UP] Also refer blacklisting in error message if barrier scheduling fail #28476
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -688,10 +688,11 @@ private[spark] class TaskSchedulerImpl( | |
| val errorMsg = | ||
| s"Fail resource offers for barrier stage ${taskSet.stageId} because only " + | ||
| s"${addressesWithDescs.size} out of a total number of ${taskSet.numTasks}" + | ||
| s" tasks got resource offers. This happens because barrier execution currently " + | ||
| s"does not work gracefully with delay scheduling. We highly recommend you to " + | ||
| s"disable delay scheduling by setting spark.locality.wait=0 as a workaround if " + | ||
| s"you see this error frequently." | ||
| s" tasks got resource offers. This could happen if delay scheduling or " + | ||
| s"blacklisting is enabled, as barrier execution currently does not work " + | ||
| s"gracefully with them. We highly recommend you to disable delay scheduling " + | ||
| s"by setting spark.locality.wait=0 or disable blacklisting by setting " + | ||
| s"spark.blacklist.enabled=false as a workaround if you see this error frequently." | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You might also want to check whether blacklist is actually enabled here. |
||
| logWarning(errorMsg) | ||
| taskSet.abort(errorMsg) | ||
| throw new SparkException(errorMsg) | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 not sure if we should recommend disabling blacklisting. If it was supposed to be blacklisted assumption is something was wrong with it so job would probably fail anyway. Maybe we should just say it may have been blacklisted like before.
Uh oh!
There was an error while loading. Please reload this page.
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.
Thanks for review.
I realized a fact that blacklisting actually does not work for barrier taskset. As you may know, blacklisting only takes effect when there's failed task. But for a barrier task set, it will be marked as zombie once there's any failed task and we don't consider blacklisting for a zombie task set, see:
spark/core/src/main/scala/org/apache/spark/scheduler/TaskSetManager.scala
Lines 885 to 894 in 8b48629
So, I think blacklisting actually won't cause partial tasks launching. I will close this PR.
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.
+1