You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FIP-31][lake/iceberg] Compact deletion vector tables and keep the snapshots the index needs #5313
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.
Activity