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
FastAppendAction drops delete-only manifests, causing deleted files to reappear #2148
This drops manifests that contain only Deleted entries (has_deleted_files() but neither has_added_files() nor has_existing_files()).
Impact
After a rewrite_files operation (or any operation that creates a delete-only manifest to mark old files as removed), a subsequent fast_append drops the delete manifest from the new snapshot's manifest list. The old manifests still carry Added entries for the removed files, but there is no longer a Delete manifest to exclude them. The deleted files reappear as alive.
This causes compounding data duplication — each subsequent append or rewrite cycle adds another copy of the "ghost" files, producing exponential row growth:
The filter in existing_manifest() was intended to skip empty manifests, but it inadvertently skips delete-only manifests. A delete-only manifest is not empty — it records which file paths were removed and must be preserved until expire_snapshots cleans it up.
Currently, rewrite_files is not yet on main, so this bug is latent. It becomes immediately triggerable once any operation that produces delete-only manifests lands.
The Iceberg spec requires delete manifests to persist across snapshots until they are cleaned up by expire_snapshots. Dropping them prematurely violates snapshot isolation guarantees.
Currently, rewrite_files is not yet on main, so this bug is latent. It becomes immediately triggerable once any operation that produces delete-only manifests lands.
Would this not be triggered if another engine performs the compaction? For example, Spark?
Activity
dannycjones commentedon Jun 2, 2026
Would this not be triggered if another engine performs the compaction? For example, Spark?
fix(transaction): preserve delete-only manifests in FastAppend (#2545)