You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2020/03/13 20:01:31 UTC

[GitHub] [spark] holdenk commented on a change in pull request #27905: [SPARK-31125][K8S]Terminating pods have a deletion timestamp but they are not yet dead.

holdenk commented on a change in pull request #27905: [SPARK-31125][K8S]Terminating pods have a deletion timestamp but they are not yet dead.
URL: https://github.com/apache/spark/pull/27905#discussion_r392440917
 
 

 ##########
 File path: resource-managers/kubernetes/core/src/main/scala/org/apache/spark/scheduler/cluster/k8s/ExecutorPodsSnapshot.scala
 ##########
 @@ -72,5 +74,8 @@ object ExecutorPodsSnapshot extends Logging {
     }
   }
 
-  private def isDeleted(pod: Pod): Boolean = pod.getMetadata.getDeletionTimestamp != null
+  private def isDeleted(pod: Pod): Boolean = {
+    (pod.getMetadata.getDeletionTimestamp != null &&
+     pod.getStatus.getPhase.toLowerCase(Locale.ROOT) != "terminating")
 
 Review comment:
   Weird, it's passing locally I don't know why this would fail in Jenkins. I'll do some digging.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

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