hello everyone, can someone help me in implmenting...
# troubleshooting
p
hello everyone, can someone help me in implmenting graceful shutdown for flink jobs so that whenever it is restarts between two checkpoint intervals it doesn't duplicate data
c
For this you need to enable checkpointing and make sure that checkpoints are successful. If the checkpoints are stored successfully in a persistent storage, all the operators in the job will restart from their last checkpointed state. This doesnt mean that data won't be duplicated though and it will depend on your Source and Sink. For e.g, Kafka Source with READ_COMMITTED and Kafka Sink with Transactions enabled wont duplicate data. But same guarantee doesnt hold true for other source and sinks.
p
I have already implemented checkpointing at an interval of 10 minutes. I want to ensure that whenever my job receives a termination signal it should manually trigger a savepoint and whenever it restarts it should use that savepoint and use checkpoint as fallback if savepoint not found. Has anyone implemented such flow?