Skip to content

[flink] Configure the last safe snapshot for sorted index builds - #10136

Closed
leaves12138 wants to merge 2 commits into
apache:masterfrom
leaves12138:safe_snapshot
Closed

leaves12138 wants to merge 2 commits into
apache:masterfrom
leaves12138:safe_snapshot

Conversation

@leaves12138

@leaves12138 leaves12138 commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Purpose

Configure the table used by Flink sorted index builds with an explicit last-safe-snapshot boundary. The intent is to limit previous-commit lookups to snapshots created after the build starts, without enabling strict checks on concurrent snapshot changes.

At the start of SortedIndexTopoBuilder.buildIndexStream:

  • Capture the latest snapshot ID, using 0 when the table has no snapshots.
  • Set commit.last-safe-snapshot to that ID on the table copy used to build the index stream.
  • Set commit.strict-mode.enabled to false on the same table copy.

Tests

No new tests are included in this PR. CI validation is pending.

@leaves12138 leaves12138 changed the title [flink] Safe snapshot for sorted index build [flink] Configure the last safe snapshot for sorted index builds Sep 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant