Skip to content

[pull] main from apache:main - #12

Merged
pull[bot] merged 1 commit into
section9-lab:mainfrom
apache:main
May 16, 2026
Merged

pull[bot] merged 1 commit into
section9-lab:mainfrom
apache:main

Conversation

@pull

@pull pull Bot commented May 16, 2026 •

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

…ntries (#667)

Issue #665. When Flink aborts a checkpoint, it calls notifyCheckpointAborted
instead of notifyCheckpointComplete. The DurableExecutionManager only handled
the complete path, so the per-checkpoint sequence-number entry recorded by
snapshotLastCompletedSequenceNumbers was never released for aborted
checkpoints. Under sustained abort pressure (timeouts, alignment failures,
backend pressure), checkpointIdToSeqNums grew unboundedly.

Changes:

- Add DurableExecutionManager.notifyCheckpointAborted(long): removes the
  entry from checkpointIdToSeqNums, guarded by the same actionStateStore
  != null check as notifyCheckpointComplete. Does NOT prune durable action
  state — the aborted checkpoint's writes were never committed, so the
  prior committed checkpoint's recovery state is still load-bearing and
  must not be pruned.

- Add ActionExecutionOperator.notifyCheckpointAborted(long): thin override
  that delegates to the manager and then calls super, mirroring the
  existing notifyCheckpointComplete override.

- Extend the symmetric-guard invariant javadoc on
  snapshotLastCompletedSequenceNumbers and notifyCheckpointComplete to
  name both release paths (complete OR abort). The actionStateStore !=
  null guard now lives on three methods; the cross-linked javadoc makes
  that explicit and cites issues #645 and #665.

- Three new DurableExecutionManagerTest cases (using the existing
  getCheckpointIdToSeqNums() @VisibleForTesting accessor introduced in
  #659):
  * notifyAbortedRemovesEntryWithoutPruning — entry released, durable
    state untouched (verified against a real InMemoryActionStateStore so
    wrongful pruning would be observable).
  * completedAndAbortedInterleavedKeepsInFlightEntries — three in-flight
    checkpoints, one completes (state pruned), one aborts (state preserved),
    one remains.
  * noStoreModeNotifyCheckpointAbortedIsNoOp — symmetric null-store no-op
    coverage matching the existing notifyCheckpointComplete null-store case.
@pull pull Bot locked and limited conversation to collaborators May 16, 2026
@pull pull Bot added the ⤵️ pull label May 16, 2026
@pull
pull Bot merged commit 273b159 into section9-lab:main May 16, 2026
22 of 24 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant