Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FLINK-10377] Support checkpoint overtaking a savepoint in TwoPhaseCo…
…mmitSink The precondition checkState(pendingTransactionIterator.hasNext(), "checkpoint completed, but no transaction pending"); in TwoPhaseCommitSinkFunction.notifyCheckpointComplete() seems too strict, because checkpoints can overtake checkpoints and will fail the precondition. In this case the commit was already performed by the first notification and subsumes the late checkpoint. I think the check can be removed. This can happen in the following scenario: # savepoint is triggered # checkpoint is triggered # checkpoint completes (but it doesn't subsume the savepoint, because checkpoints subsume only other checkpoints). # savepoint completes
- Loading branch information