High Level overview
1. Jobmanager trigger the checkpoint to start
2. Checkpoints are special messages injected in the source called barriers
3. These barriers flow from the source down to the sink
4. Everytime these barriers arrive in the input buffers of a node they block the processing until all the barriers arrive
5. when they arrive 1. data (state) gets flushed on disk and asynchronously data gets uploaded to a dfs.
6. Then all nodes down to the sink receive these barriers they report back to the JobManager.. at these point the checkpoint has been completed
A few problems though:
1. since they block when backpressure kicks-in it cause problems, delays and overall the job suffer.. to address this issue we have
unaligned checkpoints. instead of waiting for all barriers in the input buffers, they are propagated to the output buffer and in-flight data is also stored.
2. The causes another problem now, that because in-flight data can be stored - the data size can grow more and more.. this is were
buffer debloating helps. it makes sure that in the input buffers there is only enough data for processing and not too much data
3. Incremental checkpoints also also typically used in order to help reduce the total size of data that needs to be uploaded on DFS.
But still with these improvements there were more problems and Generalized Incremental Checkpoints were introduced. This read should help provide some context
https://www.ververica.com/blog/generic-log-based-incremental-checkpoint
This is a high level and even with these there are more to say and more problem to solve. But start with these and hope it helps π