Interface OperatorCoordinatorCheckpointContext

    • Method Detail

      • abortCurrentTriggering

        void abortCurrentTriggering()
      • resetToCheckpoint

        void resetToCheckpoint​(long checkpointId,
                               @Nullable
                               byte[] checkpointData)
                        throws Exception
        Resets the coordinator to the checkpoint with the given state.

        This method is called with a null state argument in the following situations:

        • There is a recovery and there was no completed checkpoint yet.
        • There is a recovery from a completed checkpoint/savepoint but it contained no state for the coordinator.

        In both cases, the coordinator should reset to an empty (new) state.

        Throws:
        Exception
      • subtaskReset

        void subtaskReset​(int subtask,
                          long checkpointId)
        Called if a task is recovered as part of a partial failover, meaning a failover handled by the scheduler's failover strategy (by default recovering a pipelined region). The method is invoked for each subtask involved in that partial failover.

        In contrast to this method, the resetToCheckpoint(long, byte[]) method is called in the case of a global failover, which is the case when the coordinator (JobManager) is recovered.