Hello team! We're using kuberentes flink operator ...
# troubleshooting
j
Hello team! We're using kuberentes flink operator and auto-scaling. Sometimes, auto-scaling will cause the flink job fail and be stuck into FAILED state. We've find a flag - kubernetes.operator.job.restart.failed, by setting it to true, the operator can automatically restart the failed job, which is awesome. But the question is: the job cannot be restored from any checkpoint. It always restart from scratch! Although the official document says it will use the latest successful checkpoint. We wonder why? Are there any special configuration we're missing? Thank you! BTW, we're using operator v1.9.
g
Hm, would be good to understand what caused the job to end up in the terminally
FAILED
state. That should not normally happen. Could you maybe open a JIRA ticket with the error details and some logs from the JM and the Flink operator? Also you may consider trying v1.10 that was recently released that contains some fixes in this area 馃檪
j
Yes, thank you Gyula, I am trying v.1.10! Hope the new version fixed this bug!
Hi @Gyula F贸ra I've tried Operator v.1.10 with Flink 1.20. Although this ticket seems to match my issue exactly: https://issues.apache.org/jira/browse/FLINK-35857, the problem seems still there to me. I wonder if I missed configurations to make it work? For example,
Copy code
spec.job.initialSavepointPath
?
My goal is that when the job get into failed state, I hope the operator can automatically restart the job and start from the latest checkpoint, but not the savepoint. BTW, I run the job in application mode, not session mode.