Github user andrewor14 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/8007#discussion_r36936875
  
    --- Diff: core/src/main/scala/org/apache/spark/TaskEndReason.scala ---
    @@ -168,6 +168,23 @@ case class ExecutorLostFailure(execId: String) extends 
TaskFailedReason {
     
     /**
      * :: DeveloperApi ::
    + * The task failed because the executor that it was running on was 
prematurely terminated. The
    + * executor is forcibly exited but the exit should be considered as part 
of normal cluster
    + * behavior.
    + */
    +@DeveloperApi
    +case class ExecutorForTaskExited(
    +    taskId: Long,
    +    execId: String,
    +    exitReason: String,
    +    exitCode: Int)
    +    extends TaskFailedReason {
    +  override def toErrorString: String = s"Task with ID $taskId had its 
executor ${execId}" +
    --- End diff --
    
    it's probably OK to leave out the `taskId` here since this is displayed on 
the UI next to the task ID anyway. Then you can remove the field from this case 
class.


---
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]

Reply via email to