Repository navigation
fix(cleanup): reject malformed legacy intervals before commit - #11740
Merged
Merged
Conversation
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.
Tip: disable this comment in your organization's Code Review settings.
Contributor
There was a problem hiding this comment.
✅ Gate recommendation: approve.
The final-manifest validation addresses #11739 while keeping inherited malformed settings writable and repairable. No blocking issues found.
Xuanwo
approved these changes
Dec 2, 2026
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
A malformed
lance.auto_cleanup.intervalcan be published in the manifest. Later commits still succeed, but the cleanup hook logs a warning and skips automatic cleanup.Validate the final interval before publication when a transaction explicitly writes the key. The error names the key and explains how to repair it. Datasets with a previously stored malformed interval can still be opened, appended to, updated on other keys, and repaired by replacing or removing the interval. The existing
0behavior and retention policy rules still apply.Fixes #11739.
Validation
origin/main.cargo fmt --all --checkcargo clippy --locked --all --tests --benches -- -D warningsauto_cleanupanddataset::cleanup::tests::retentionfilters.