Hi all, I have Flink jobs that sometimes seem to l...
# troubleshooting
j
Hi all, I have Flink jobs that sometimes seem to loose their checkpoints (during a restart of Flink processes) and as a result those jobs reprocess all historical input messages instead of resuming from their latest checkpoint. Our environment: • Flink session cluster v1.18.1, deployed as containers in Nomad • Zookeeper HA • Kafka sources and sinks • Checkpointing to s3 • Flink adaptive scheduler enabled It happens during a restart of the Flink cluster which can be caused by a redeployment (eg. to adjust Flink memory settings) or by a scheduled reboot of the machine(s) hosting the Nomad containers. When this happens I typically see all jobs nicely stopping and resuming from latest checkpoint, however sometimes there are some jobs that don't find their checkpoint anymore (I guess the reference is removed in Zookeeper during the shutdown/restart process). So far I haven't found anything strange in the logs, apart from the fact that the checkpoint is not found in zookeeper:
Found 0 checkpoints in ZooKeeperStateHandleStore
When everything works as expected it logs:
Found 1 checkpoints in ZooKeeperStateHandleStore
and then resumes from that checkpoint. I cannot reproduce it by killing the jobmanager only (HA works as expected). It seems to happen when both jobmanager and some taskmanagers are restarting together. Lately I disabled the adaptive scheduler and that seems to have fixed it (but it's still a bit early to definitely confirm that it really is the fix).
d
Hey, I’m having a similar issue. Exactly the same scenario and Flink version, the only difference is that I’m using Kubernetes HA and reactive mode as adaptive scheduler instead. I have other projects with similar configuration that don’t have this issue. Did you have any updates on this topic?
j
Our system has been running stable during the last 2 months. Basically I disabled the adaptive scheduler (which I guess caused the troubles). I'm also running a single jobmanager instead of 1 active and 1 passive. In case of a crash, our container orchestrator spins up a new JM anyway.
🙌 1