Repository navigation
fix(table): report published manifest e_tag from rename handler - #11111
Merged
Merged
Conversation
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.
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.
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.
Contributor
There was a problem hiding this comment.
✅ 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.
BubbleCal
approved these changes
Nov 15, 2026
This was referenced Nov 25, 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.
RenameCommitHandlerpublishes the staging manifest withrename_if_not_existsand then returnede_tag: None. When a store implements rename as copy plus delete, the published object carries a different generation token, so the writer'sManifestLocationdid 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
RenameCommitHandlerand 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.