Github user witgo commented on a diff in the pull request:
https://github.com/apache/spark/pull/1482#discussion_r29440041
--- Diff: core/src/main/scala/org/apache/spark/executor/Executor.scala ---
@@ -280,13 +280,18 @@ private[spark] class Executor(
m
}
}
- val taskEndReason = new ExceptionFailure(t, metrics)
- execBackend.statusUpdate(taskId, TaskState.FAILED,
ser.serialize(taskEndReason))
-
- // Don't forcibly exit unless the exception was inherently
fatal, to avoid
- // stopping other tasks unnecessarily.
- if (Utils.isFatalError(t)) {
- SparkUncaughtExceptionHandler.uncaughtException(t)
+ if (Utils.inShutdown()) {
+ val reason = ExecutorExitFailure(None, metrics)
+ execBackend.statusUpdate(taskId, TaskState.FAILED,
ser.serialize(reason))
--- End diff --
Yes,The code work in most cases.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]