-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup extranous output files in Iceberg DML
With query/task retries there is a chance that extra files, which does not make it to the snapshot are written to tables directory. While most of such cases should be cleaned up by writers on workers, there is a slim channce that some of those will survive query exection (e.g. if worker machine is killed). This commit adds pre-commit routine on coordinator which deletes what remained. This is still opportunistic and not 100% sure to delete everything as extra files may still be written after cleanup routine already completed, but we are trying our best. The remaining files does not imply query correctness.
- Loading branch information
Showing
5 changed files
with
162 additions
and
15 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.