-
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-22123][CORE] Add latest failure reason for task set blacklist #19338
Changes from 3 commits
668d5a7
8134142
57190ef
2147450
4d906b7
05adc2a
9a2d7ba
d01e112
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -671,8 +671,9 @@ private[spark] class TaskSetManager( | |
if (blacklistedEverywhere) { | ||
val partition = tasks(indexInTaskSet).partitionId | ||
abort(s"Aborting $taskSet because task $indexInTaskSet (partition $partition) " + | ||
s"cannot run anywhere due to node and executor blacklist. Blacklisting behavior " + | ||
s"can be configured via spark.blacklist.*.") | ||
s"cannot run anywhere due to node and executor blacklist." + | ||
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. Can you please prettify the output message a bit. From what I saw in the PR description, it is a bit messy there. |
||
s" Most recent failure:\n${taskSetBlacklist.taskSetLatestFailureReason}\n\n" + | ||
s" Blacklisting behavior can be configured via spark.blacklist.*.\n\n") | ||
} | ||
} | ||
} | ||
|
@@ -837,9 +838,9 @@ private[spark] class TaskSetManager( | |
sched.dagScheduler.taskEnded(tasks(index), reason, null, accumUpdates, info) | ||
|
||
if (!isZombie && reason.countTowardsTaskFailures) { | ||
taskSetBlacklistHelperOpt.foreach(_.updateBlacklistForFailedTask( | ||
info.host, info.executorId, index)) | ||
assert (null != failureReason) | ||
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. move the |
||
taskSetBlacklistHelperOpt.foreach(_.updateBlacklistForFailedTask( | ||
info.host, info.executorId, index, failureReason)) | ||
numFailures(index) += 1 | ||
if (numFailures(index) >= maxTaskFailures) { | ||
logError("Task %d in stage %s failed %d times; aborting job".format( | ||
|
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.
Can we please avoid public variables here? Also why not make it less verbose to change to
latestFailureReason
?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 have thought about
public
problem,but we need to get this value fromTaskSetManager
. If i add adef getLatestFailureReason
make sense? @jerryshao