dongjoon-hyun commented on a change in pull request #26433: [SPARK-29771][K8S] 
Add configure to limit executor failures
URL: https://github.com/apache/spark/pull/26433#discussion_r344506771
 
 

 ##########
 File path: 
resource-managers/kubernetes/core/src/main/scala/org/apache/spark/scheduler/cluster/k8s/ExecutorPodsAllocator.scala
 ##########
 @@ -37,6 +37,8 @@ private[spark] class ExecutorPodsAllocator(
     snapshotsStore: ExecutorPodsSnapshotsStore,
     clock: Clock) extends Logging {
 
+  private val EXIT_MAX_EXECUTOR_FAILURES = 10
 
 Review comment:
   Sorry, but why do you choose `10` as an exit code?
   This conflicts with the existing exit value `EXIT_UNCAUGHT_EXCEPTION`.
   I guess you want to have a unique value.

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