attilapiros commented on code in PR #52902:
URL: https://github.com/apache/spark/pull/52902#discussion_r2496512293


##########
resource-managers/kubernetes/core/src/main/scala/org/apache/spark/scheduler/cluster/k8s/ExecutorPodsLifecycleManager.scala:
##########
@@ -211,7 +219,9 @@ private[spark] class ExecutorPodsLifecycleManager(
           .pods()
           .inNamespace(namespace)
           .withName(updatedPod.getMetadata.getName)
-        if (podToDelete.get() != null) {
+
+        if (podToDelete.get() != null ||
+            podToDelete.get.getMetadata.getDeletionTimestamp != null) {

Review Comment:
   Don't you mean this?
   
   ```suggestion
           if (podToDelete.get() != null &&
               podToDelete.get.getMetadata.getDeletionTimestamp == null) {
   ```
   So when we identified the pod AND according to the metadata's deletion 
timestamp it was not deleted yet



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to