Skip to content

fix: reject malformed auto-cleanup intervals before commit - #11741

Closed
lance-gatefixer[bot] wants to merge 1 commit into
mainfrom
gatekeeper/fix-11739-1
Closed

lance-gatefixer[bot] wants to merge 1 commit into
mainfrom
gatekeeper/fix-11739-1

Conversation

@lance-gatefixer

Copy link
Copy Markdown
Contributor

Raw config updates accepted malformed lance.auto_cleanup.interval values because parsing happened in the best-effort cleanup hook after the new dataset version was published.

Validate explicitly supplied intervals as u64 in the Rust config update and overwrite paths, including action transactions, and return InvalidInput before publication. Valid unsigned values (including 0), key removal, and writes that inherit a malformed setting remain supported. Regression tests cover version publication, multi-fragment appends, and repairing inherited settings.

Fixes #11739.

Validation:

  • cargo test -p lance-table auto_cleanup --lib — 37 passed.
  • cargo test -p lance auto_cleanup --lib — 20 passed, including the existing cleanup-on-every-commit test for 0.
  • cargo fmt --all
  • cargo clippy --all --tests --benches -- -D warnings
  • Confirmed the new rejection regression fails against the original production code.

Related: #11740 (a draft implementation for the same issue).

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@github-actions github-actions Bot added the bug Something isn't working label Dec 2, 2026

@lance-gatekeeper lance-gatekeeper Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Gate recommendation: approve.

The validation addresses #11739 before version publication while preserving inherited-value repair and the existing 0 behavior. Focused table and dataset cleanup regressions pass.

@lance-gatekeeper lance-gatekeeper Bot added the K-approved Latest Gatekeeper recommendation permits acceptance. label Dec 2, 2026
@Xuanwo

Xuanwo commented Dec 2, 2026

Copy link
Copy Markdown
Member

[AI-generated note] Closing as a duplicate of #11740, which landed the fix for #11739. Its regression tests cover rejection of malformed lance.auto_cleanup.interval values before manifest publication and confirm that an inherited malformed interval can still be replaced or removed.

@Xuanwo Xuanwo closed this Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working K-approved Latest Gatekeeper recommendation permits acceptance.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: reject malformed auto-cleanup interval in update_config

1 participant