xintongsong commented on a change in pull request #15095:
URL: https://github.com/apache/flink/pull/15095#discussion_r589246950
##########
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:
It's also possible for the driver to try removing pods on receiving pod
terminated events, which can also happen before obtaining the leadership.
I'd suggest to fix this in a separate ticket.
----------------------------------------------------------------
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]