wangyang0918 commented on a change in pull request #15095:
URL: https://github.com/apache/flink/pull/15095#discussion_r589252926



##########
File path: 
flink-kubernetes/src/main/java/org/apache/flink/kubernetes/KubernetesResourceManagerDriver.java
##########
@@ -228,7 +228,7 @@ private void recoverWorkerNodesFromPreviousAttempts() 
throws ResourceManagerExce
                 currentMaxAttemptId = attempt;
             }
 
-            if (pod.isTerminated()) {
+            if (pod.isTerminated() || !pod.isScheduled()) {

Review comment:
       Make sense. We could have a dedicated ticket for this issue. Only when 
the leader is granted for ResourceManager, we need to recover the pods from 
latest attempt and create the watch.




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


Reply via email to