Github user mridulm commented on a diff in the pull request: https://github.com/apache/spark/pull/16639#discussion_r96815319 --- Diff: core/src/main/scala/org/apache/spark/executor/Executor.scala --- @@ -405,6 +415,13 @@ private[spark] class Executor( setTaskFinishedAndClearInterruptStatus() execBackend.statusUpdate(taskId, TaskState.FAILED, ser.serialize(reason)) + case t: Throwable if task.context.fetchFailed.isDefined => + // tbere was a fetch failure in the task, but some user code wrapped that exception + // and threw something else. Regardless, we treat it as a fetch failure. + val reason = task.context.fetchFailed.get.toTaskFailedReason + setTaskFinishedAndClearInterruptStatus() + execBackend.statusUpdate(taskId, TaskState.FAILED, ser.serialize(reason)) --- End diff -- nit: Probably log a similar message as above ?
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org