Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[FLINK-6390] [checkpoints] Add API for checkpoints that are triggered via external systems #3782
Some source systems require to be notified prior to starting a checkpoint, in order to do preparatory work for the checkpoint.
This PR adds an interface to allow sources to register hooks that are called by the checkpoint coordinator when triggering / restoring a checkpoint. These hooks may produce state that is stores with the checkpoint metadata.
Because this changes the checkpoint metadata format, the commit introduces a new metadata format version.