-
Notifications
You must be signed in to change notification settings - Fork 413
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: ensure cleanup_metadata never removes current version
Previously, if a table had no new commits but log_retention_expiry lapsed for the latest commit or checkpoint file, the file would be removed leaving the table in a corrupted state. To prevent this, cleanup_metadata should only run with `current_version` equal to the table states current version. For example, `cleanup_metadata` for v10 would only touch files for v0-v9.
- Loading branch information
1 parent
4d862a0
commit 3dda954
Showing
2 changed files
with
110 additions
and
3 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