Interface Committer<CommT>

  • Type Parameters:
    CommT - The type of information needed to commit the staged data
    All Superinterfaces:
    AutoCloseable
    All Known Implementing Classes:
    FileCommitter

    @Public
    public interface Committer<CommT>
    extends AutoCloseable
    The Committer is responsible for committing the data staged by the CommittingSinkWriter in the second step of a two-phase commit protocol.

    A commit must be idempotent: If some failure occurs in Flink during commit phase, Flink will restart from previous checkpoint and re-attempt to commit all committables. Thus, some or all committables may have already been committed. These Committer.CommitRequests must not change the external system and implementers are asked to signal Committer.CommitRequest.signalAlreadyCommitted().