Hi everyone :wave: Quick question regarding Flink ...
# troubleshooting
p
Hi everyone 👋 Quick question regarding Flink on Kubernetes
upgradeMode
We currently set it to
savepoint
and started noticing that
on suspend
it creates a savepoint as expected but deletes all the existing
checkpoints
Is this the expected behavior? Not sure if this is related but, the only message we see in the
jobManager
log is
Copy code
level=INFO message="Job fd053399cf4b210cc94cc08b80545d25 has been registered for cleanup in the JobResultStore after reaching a terminal state." path=/ pod=flink-xxx-7d6b884cbb-z7bxj time=2024-01-26T17:07:50.785299901Z
I checked the configuration related to this and it is set to
Copy code
job-result-store.delete-on-commit: FALSE
t
Yes, it's expected behavior. When you suspend a Flink job in
savepoint
mode, it creates a savepoint and deletes existing checkpoints, since the savepoint serves as a more durable state snapshot for future resumptions. The log message you're seeing is related to job cleanup after it reaches a terminal state and isn't directly connected to checkpoint or savepoint handling.
p
Thank you @Tim Wolfe for the response. Context for my question: We recently had a data corruption scenario and wanted to start the job from an old check-point and were blocked by this behavior.
p
I'm not sure about that. Do you have the config to retain checkpoints on cancelation enabled? https://nightlies.apache.org/flink/flink-docs-master/docs/ops/state/checkpoints/#retained-checkpoints
p
Yes @Pedro Mázala
Copy code
checkpointConfig.setExternalizedCheckpointCleanup(RETAIN_ON_CANCELLATION)
execution.checkpointing.externalized-checkpoint-retention RETAIN_ON_CANCELLATION
state.checkpoints.num-retained 50
n
Hi, Prithi, do you have flink cluster in kube environment?
p
Hello @Narasaiah Ethamukkala Do not want to de-rail the conversation in this thread. But yes we run Flink on AWS EKS using the Flink on K8s operator (1.6.1 version) Followed this guide to get started