rator to the state that has already been pre-committed but not yet committed.</p>
<p>We must save enough information about pre-committed transactions in checkpointed state to be able to either <code>abort</code> or <code>commit</code> transactions after a restart. In our example, this would be the path to the temporary file and target directory.</p>
<p>The <code>TwoPhaseCommitSinkFunction</code> takes this scenario into account, and it always issues a preemptive commit when restoring state from a checkpoint