agrawaldevesh commented on a change in pull request #29014:
URL: https://github.com/apache/spark/pull/29014#discussion_r453738154
##########
File path:
core/src/main/scala/org/apache/spark/scheduler/ExecutorLossReason.scala
##########
@@ -54,10 +54,13 @@ 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)
+ * Used to know whether the shuffle data is lost too.
+ * @param causedByApp whether the loss of the slave is the fault of the
running app. (assumed true
+ * by default unless known explicitly otherwise)
*/
private[spark]
-case class SlaveLost(_message: String = "Slave lost", workerLost: Boolean =
false)
- extends ExecutorLossReason(_message)
+case class SlaveLost(_message: String = "Slave lost", workerLost: Boolean =
false,
+ causedByApp: Boolean = true) extends
ExecutorLossReason(_message)
Review comment:
Its used a pattern match in TaskSetManager.scala, around line 984, maybe
that is why it wasn't greppable.
----------------------------------------------------------------
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]