Skip to content

[FIP-31][lake/iceberg] Prepare deletion vectors on the tiering writers #5314

Open

Description

@fresh-borzoni

Search before asking

  • I searched in the issues and found nothing similar.

Description

Builds on the Iceberg commit (#5311) and SupportsDeletionVectorPreparation (#5296). This task moves the merge of a round's deletes from the committer to the writers:

  • the writer of a bucket finds the current delete file of each data file the deletes touch, in a list of the base's live files that the writers of a TaskManager share and advance snapshot by snapshot; it loads them, merges, and writes one Puffin file for the bucket; the write result carries each new vector with the delete file it replaces;
  • the committer only checks them: a vector is committed if its data file is live in the base the commit lands on and the file's current delete file is the one the vector replaces;
  • a bucket whose vectors fail the check, whose own compaction ran in the round, or whose writer could not prepare them goes through the committer's merge; preparing is best effort and never fails a round; lake.tiering.deletion-vectors.writer-prepared.enabled turns it off; v2 tables always take the committer's path;
  • the writers share one catalog per table per TaskManager;
  • metrics vectorsFromWriters, vectorsRejected and vectorsNotPrepared.

Tests: the per-file check and every fallback reason; failover with prepared files; cleanup of prepared files that were not committed; bounded catalog connections.

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