Skip to content

[FIP-31][lake/iceberg] Compact deletion vector tables and keep the snapshots the index needs #5313

Open

Description

@fresh-borzoni

Search before asking

  • I searched in the issues and found nothing similar.

Description

Builds on the index store (#5298) and the commit interfaces (#5296). This task adds Fluss's own compaction and snapshot expiry for deletion vector tables:

  • with table.datalake.auto-compaction, the tiering writer compacts its bucket's files in size tiers, at most once per table.datalake.auto-compaction.interval, when it has ...min-small-files small files or a file whose deletes hide more than a fifth of its rows;
  • the compactor hands each kept key's new position to the index, so its rewrites need no re-index; the rewrite commits before the round's deletes, and only the rewritten buckets take their deletes again;
  • each readable snapshot is tagged fluss-readable-<snapshot id> (the 10 most recent stay tagged) and the oldest snapshot the index chain needs is tagged fluss-keep-from, so any engine's expiry keeps them; the committer's own expiry never removes a tagged snapshot.

Tests: compaction rounds against an oracle; expiry by another engine.

Part of FIP-31 and tracked by #5294.

Willingness to contribute

  • I'm willing to submit a PR!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions