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] Prepare deletion vectors on the tiering writers #5314
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.
Activity