Skip to content

fix(table): report published manifest e_tag from rename handler - #11111

Merged
Xuanwo merged 2 commits into
mainfrom
xuanwo/rename-commit-published-etag-20261115
Nov 15, 2026
Merged

Xuanwo merged 2 commits into
mainfrom
xuanwo/rename-commit-published-etag-20261115

Conversation

@Xuanwo

@Xuanwo Xuanwo commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

RenameCommitHandler publishes the staging manifest with rename_if_not_exists and then returned e_tag: None. When a store implements rename as copy plus delete, the published object carries a different generation token, so the writer's ManifestLocation did not describe what a reader resolves by HEAD for the same version. Consumers that key caches on that token (manifest and index metadata caches, refinement cache identity, already_checked_out) could then disagree about one published snapshot.

This observes the final path after a successful rename and returns the token reported there, matching the existing external-manifest publication path. It costs one metadata read per commit on this handler and adds a regression test that writes through an explicit RenameCommitHandler and resolves the version as a reader does.

The Windows diagnostic in #11110 applies this hunk to the pinned red head; this PR does not claim a Windows result.

RenameCommitHandler published the staging object with rename_if_not_exists and
then returned no generation token. A store that implements rename as copy plus
delete does not preserve the staging object's token, so a reader that resolves
the same version via HEAD observed a different manifest identity than the writer
recorded. Cache keys that include the token could therefore disagree between
the writer and its readers.

Observe the final path after a successful rename and return the e_tag reported
there. This costs one metadata read per commit on this handler and keeps the
ManifestLocation describing the object readers resolve.

@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 Nov 15, 2026
lance-gatekeeper[bot]

This comment was marked as outdated.

@lance-gatekeeper lance-gatekeeper Bot added the K-approved Latest Gatekeeper recommendation permits acceptance. label Nov 15, 2026
RenameCommitHandler now reports the published e_tag, so a shared session
caches the commit under the key the rebase lists. Remove the e_tag-less
cache model and assert the listed key is present; the separate-session
case still covers decoding the inline transaction from storage.
@lance-gatekeeper lance-gatekeeper Bot removed the K-approved Latest Gatekeeper recommendation permits acceptance. label Nov 15, 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 published token matches HEAD-based version resolution while preserving publication atomicity and commit-outcome recovery. The revised race tests retain shared-session cache reuse and separate-session transaction decoding.

The original Windows cache lifecycle result remains pending in #11110.

@lance-gatekeeper lance-gatekeeper Bot added the K-approved Latest Gatekeeper recommendation permits acceptance. label Nov 15, 2026
@Xuanwo
Xuanwo merged commit 82e6f8c into main Nov 15, 2026
44 checks passed
@Xuanwo
Xuanwo deleted the xuanwo/rename-commit-published-etag-20261115 branch November 15, 2026 15:53
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.

2 participants