Skip to content

Mint a new generation when compose overwrites an object - #2324

Open
gaul wants to merge 1 commit into
fsouza:mainfrom
gaul:compose-generation
Open

Mint a new generation when compose overwrites an object#2324
gaul wants to merge 1 commit into
fsouza:mainfrom
gaul:compose-generation

Conversation

@gaul

@gaul gaul commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

ComposeObject reused the destination's generation, so composing over an existing object on a versioning-enabled bucket archived the old copy and stored the new one under the same generation: a versioned listing showed two entries sharing an id, and the archived copy was no longer addressable on its own. Cloud Storage gives a compose result a new generation like any other write; zero the destination's so addObject mints one.

ComposeObject reused the destination's generation, so composing over
an existing object on a versioning-enabled bucket archived the old
copy and stored the new one under the same generation: a versioned
listing showed two entries sharing an id, and the archived copy was
no longer addressable on its own.  Cloud Storage gives a compose
result a new generation like any other write; zero the destination's
so addObject mints one.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant