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

    https://github.com/apache/spark/pull/23136#discussion_r236485835
  
    --- Diff: 
resource-managers/kubernetes/core/src/main/scala/org/apache/spark/scheduler/cluster/k8s/ExecutorPodsAllocator.scala
 ---
    @@ -86,11 +88,14 @@ private[spark] class ExecutorPodsAllocator(
               s" cluster after $podCreationTimeout milliseconds despite the 
fact that a" +
               " previous allocation attempt tried to create it. The executor 
may have been" +
               " deleted but the application missed the deletion event.")
    -        Utils.tryLogNonFatalError {
    -          kubernetesClient
    -            .pods()
    -            .withLabel(SPARK_EXECUTOR_ID_LABEL, execId.toString)
    -            .delete()
    +
    +        if (shouldDeleteExecutors) {
    +          Utils.tryLogNonFatalError {
    +            kubernetesClient
    +              .pods()
    +              .withLabel(SPARK_EXECUTOR_ID_LABEL, execId.toString)
    --- End diff --
    
    Correct here is a sample output:
    ```Labels:    spark-app-selector=spark-application-1543242814683
                    spark-exec-id=2
                    spark-role=executor
    ```
    Weird that didnt see one job interfering with the other before.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to