Whether this task failure should be counted towards the maximum number of times the task is allowed to fail before the stage is aborted.
Whether this task failure should be counted towards the maximum number of times the task is allowed to fail before the stage is aborted. Set to false in cases where the task's failure was unrelated to the task; for example, if the task failed because the executor it was running on was killed.
Error message displayed in the web UI.
Error message displayed in the web UI.
:: DeveloperApi :: Task failed due to a runtime exception. This is the most common failure case and also captures user program exceptions.
stackTracecontains the stack trace of the exception itself. It still exists for backward compatibility. It's better to usethis(e: Throwable, metrics: Option[TaskMetrics])to createExceptionFailureas it will handle the backward compatibility properly.fullStackTraceis a better representation of the stack trace because it contains the whole stack trace including the exception and its causesexceptionis the actual exception that caused the task to fail. It may beNonein the case that the exception is not in fact serializable. If a task fails more than once (due to retries),exceptionis that one that caused the last failure.