cloud-fan commented on a change in pull request #29014:
URL: https://github.com/apache/spark/pull/29014#discussion_r460759034



##########
File path: 
core/src/main/scala/org/apache/spark/scheduler/ExecutorLossReason.scala
##########
@@ -54,9 +54,14 @@ private [spark] object LossReasonPending extends 
ExecutorLossReason("Pending los
 /**
  * @param _message human readable loss reason
  * @param workerLost whether the worker is confirmed lost too (i.e. including 
shuffle service)
+ * @param causedByApp whether the loss of the executor is the fault of the 
running app.
+ *                    (assumed true by default unless known explicitly 
otherwise)
  */
 private[spark]
-case class ExecutorProcessLost(_message: String = "Worker lost", workerLost: 
Boolean = false)
+case class ExecutorProcessLost(
+    _message: String = "Executor Process Lost",
+    workerLost: Boolean = false,
+    causedByApp: Boolean = true)

Review comment:
       seems like `causedByApp == !workerLost` is always true?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to