Repository navigation
Skip already-deleted manifests and manifest lists in purge_table - #4630
Open
faisal37990 wants to merge 1 commit into
Open
faisal37990 wants to merge 1 commit into
faisal37990 wants to merge 1 commit into
Conversation
faisal37990
added a commit
to faisal37990/faisal37990
that referenced
this pull request
Dec 6, 2026
faisal37990
added a commit
to faisal37990/faisal37990.github.io
that referenced
this pull request
Dec 6, 2026
faisal37990
added a commit
to faisal37990/faisal37990
that referenced
this pull request
Dec 6, 2026
Fokko
approved these changes
Dec 6, 2026
Fokko
left a comment
Contributor
There was a problem hiding this comment.
Nice fix @faisal37990, this aligns purge_table with the documented contract that only failures to delete are logged, not raised 🚀 Related: #4617 (same pattern for old metadata files).
faisal37990
added a commit
to faisal37990/faisal37990
that referenced
this pull request
Dec 6, 2026
faisal37990
added a commit
to faisal37990/faisal37990.github.io
that referenced
this pull request
Dec 6, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #4625.
When purging a table whose manifest lists or manifest files were already removed eagerly by the catalog or storage layer,
purge_tablepreviously raisedFileNotFoundErrorinsnapshot.manifests()ordelete_data_files()before deleting the remaining table files.Changes
FileNotFoundErrorwhen readingsnapshot.manifests(io, encryption_manager), log atDEBUGlevel, skip adding the already-missing manifest list tomanifest_lists_to_delete, and continue collecting remaining snapshots.FileNotFoundErrorwhen readingmanifest_file.fetch_manifest_entry(io, discard_deleted=False), log atDEBUGlevel, and continue deleting data files referenced by remaining manifests.PermissionError,ValueError) continue to propagate unchanged.Verification
TestPurgeTableMissingManifests(tests/catalog/test_base.py) verifyingFileNotFoundErrorskipping + debug logging and propagation of non-FileNotFoundErrorerrors for both manifest lists and manifests.pytest --noconftest tests/catalog/test_base.py -v(12 passed),ruff check, andruff format --check(all clean).