Repository navigation
Conversation
|
Important Format specification voteThis PR modifies the Lance format specification, so it requires 3 binding +1 votes from PMC members (excluding the proposer), at least one of them on the latest commit, and a minimum 72-hour voting period, weekends excluded, before it can merge. Vote by approving this PR (+1) or requesting changes (−1, a veto). See the voting process. Approvals carry over across pushes, so a rebase or a typo fix does not send everyone back to re-vote. Whoever approves the latest commit is vouching that nothing substantive has changed since the earlier approvals; if something has, ask for fresh votes. Status: ❌ Blocked — 0 of 3 required approvals
Updated automatically by the format-spec vote gate, which re-checks every 15 minutes — just voted? Re-check now (press Run workflow; leave the input blank to re-check every open format PR). A PMC member may apply the |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
ChilePiquin
left a comment
There was a problem hiding this comment.
Pending GK finding resolution.
Config keys made every deleting cleanup commit a version. Store the rule
in per-branch _retention/{n}.json files written with put-if-not-exists,
make expiration monotonic, and pin restore targets while restoring.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
897462a to
66bc665
Compare
The reason I changed was that I found the version writes were unacceptable. At first I thought it was just one commit, but then I realized it was |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Xuanwo
left a comment
There was a problem hiding this comment.
Please clarify how an existing table can adopt the per-branch _retention/ layout. v14.0.3 permits nested branch names that occupy the proposed rule directory. Reserving the name for new branches, as #10964 proposes, still leaves tables that already use that path.
An isolated namespace would avoid the overlap. If the specification keeps this layout, please define how a writer detects the conflict before enabling retention writes and how an upgrade preserves both the existing branch and the retention rules.
For the rollout in #10964, please include write-triggered automatic cleanup alongside manual cleanup and expire_versions when documenting the requirement that only one cleanup run at a time.
|
Use case for pins: strict expected-head commits (#8699 / #11021) #11021 adds a commit mode that must fail unless the dataset head is exactly the transaction's This spec's pin + retention-rule mechanism looks like exactly the fence needed, with one new usage: pinning a target version that has no manifest yet. Protocol for a strict commit targeting version
Correctness follows the same "whichever goes second sees the other" argument as restore: a cleanup that deletes the contents of slot Two spec clarifications would make this usage well-defined:
If this direction sounds right, I'm happy to send a small spec addition to "Publishing References" covering expected-head commits, and rebase #11021 onto #10964 once it lands. One open question for this usage: pins go stale after 24 hours, which implicitly bounds how long a strict commit may hold its fence. For commit-time work that can exceed that (e.g. a long compaction build before publication), would you rather have the writer refresh the pin, or treat >24h strict commits as out of scope? |
Summary
Cleanup reads tags and branches once and then deletes. A tag, branch, or restore published during that window can reference a version cleanup is deleting (#10499). This specifies a per-branch retention rule that cleanup writes before deleting anything:
expiredBeforeand not inretainedare expired. They stay readable; expiration only blocks new references.{n+1}.jsonwith put-if-not-exists, and each new rule merges with the current one, so expiration never goes backwards. An explicit override may lift it for repairs.The rule lives in side files rather than the manifest so cleanup still makes no commits. Writers that don't implement this ignore the files, and a missing or malformed rule expires nothing, so old clients keep today's behavior. Retention leases (#10428) are unaffected.
Design discussion: #10499 (comment). The implementation follows in a separate PR. This supersedes #10504.
Merge Risk
Door: one-way. It reserves
_retention/and_refs/pins/and defines their contents.Blast Radius: format, concurrency (cleanup, tags, branches, restore).
Refs #10499
🤖 Generated with Claude Code