Hi Team, we are seeing a Production Issue where in...
# troubleshooting
r
Hi Team, we are seeing a Production Issue where in the Flink Jobmanager pod goes in
CrashLoopBackOff
consistently as it is unable to find the HA recovery file in S3. We are running 1.14.3, and can confirm that the HA recovery file doesnt exist and we are sure that there was no manual intervention in deleting this file. Has anybody seen this issue ? Error:
Copy code
Caused by: org.apache.flink.util.FlinkException: Could not retrieve checkpoint 82949 from state handle under checkpointID-0000000000000082949. This indicates that the retrieved state handle is broken. Try cleaning the state handle store.
r
Are you using k8s HA? Or zookeeper? What i have seen if the job restarts and fails after all retries are exhausted then it deletes the HA dir from zookeeper as well
r
Thanks raghav! We are using k8s HA, this cluster we are running is a session based cluster on flink 1.14.3 running many flink jobs. The HA recovery directory is in S3, trying to find out under what conditions the jobmanager restarts and decide to delete the recovery folder.
r
Generally i have seen Jobmanger clears this off when all retries are exhausted as staed in Retry Strategy…give this a try but i am not aware much for K8s cluster
r
can you please ping the retry strategy key config ? Is it
cleanup-strategy.type
? https://nightlies.apache.org/flink/flink-docs-master/docs/deployment/config/#retryable-cleanup
r
Can you check these
Copy code
# Restart policy
restart-strategy: fixed-delay
restart-strategy.fixed-delay.delay: 1m
restart-strategy.fixed-delay.attempts: X
@Rupesh More were you able to find root of it?
r
We haven't seen this issue (deletion of the recovery folder) again in prod, i will try to use the restart strategy settings you shared raghav
we havent defined the
restart-strategy
for the flink job in question, need to check the default values
restart-strategy.fixed-delay.attempts
= 1 (default) , so in this case if all the jobs in the cluster arent able to come up cleanly, the JM will delete the recovery folder ?
r
In our case if the restarts are exhausted it deleted the zk checkpoint folder and it was present in JM logs as well
r
hmm makes sense, looks like with this ticket https://issues.apache.org/jira/browse/FLINK-28265 they fixed in flink v1.15.3. Only the session cluster that had the recovery folder deleted was running on 1.14.3 else for other flink clusters are running 1.17.1/1.18.0. Ned to quickly upgrade the one on 1.14.3