rberenguel commented on a change in pull request #26440: 
[SPARK-20628][CORE][K8S] Start to improve Spark decommissioning & preemption 
support
URL: https://github.com/apache/spark/pull/26440#discussion_r375406945
 
 

 ##########
 File path: 
core/src/main/scala/org/apache/spark/scheduler/ExecutorLossReason.scala
 ##########
 @@ -58,3 +58,11 @@ private [spark] object LossReasonPending extends 
ExecutorLossReason("Pending los
 private[spark]
 case class SlaveLost(_message: String = "Slave lost", workerLost: Boolean = 
false)
   extends ExecutorLossReason(_message)
+
+/**
+ * A loss reason that means the executor is marked for decommissioning.
+ *
+ * This is used by the task scheduler to remove state associated with the 
executor, but
+ * not yet fail any tasks that were running in the executor before the 
executor is "fully" lost.
+ */
+private [spark] object ExecutorDecommission extends 
ExecutorLossReason("Executor Decommission.")
 
 Review comment:
   A very nitpicky, not code related thing (sorry!), but shouldn't this reason 
be "Executor decommission" (lowercase D), to be consistent with the other 
reason strings in the file? Maybe there is a reasoning behind I don't see 
though.

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


With regards,
Apache Git Services

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

Reply via email to