Skip to content

[FIP-31][lake/iceberg] Commit a round's data files and deletion vectors on its base #5311

Open

Description

@fresh-borzoni

Search before asking

  • I searched in the issues and found nothing similar.

Description

Builds on the committer's merge (#5310) and the commit interfaces (#5296). This task adds the Iceberg commit of a round:

  • one commit adds the round's data files and deletes, fenced on the base: it lands only on the base or on snapshots after it that changed no data file; on v3 each touched data file gets one deletion vector, on v2 one file-scoped position delete file that replaces the previous one;
  • the snapshot carries fluss-dv-format-version, fluss-dv-base, fluss-dv-index-id and fluss-dv-offsets; the index change is registered as base → new snapshot;
  • a lineage check stops tiering of a table rolled back past its registered snapshot, or whose rows another engine changed;
  • a round whose commit landed but was not registered is repaired by the next round;
  • coordinate with [lake/iceberg] Tiering fails with "Must use DVs for position deletes in V3" #4772 / [lake] Fix position-delete commit failures in Iceberg V3 tiering #4773, which concern position deletes on v3 tables.

Tests: commit and repair at every crash point; v2 and v3 tables; the base fence against a concurrent commit; ITs against an oracle.

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