Skip to content

Return AlreadyExists in azure backend when using PutMode::Create and precondition fails - #830

Merged
alamb merged 3 commits into
apache:mainfrom
itsjunetime:translate_already_exists_for_azure
Aug 17, 2026
Merged

alamb merged 3 commits into
apache:mainfrom
itsjunetime:translate_already_exists_for_azure

Conversation

@itsjunetime

@itsjunetime itsjunetime commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

What changes are included in this PR?

This simply translates the Precondition error case to AlreadyExists in azure put requests when using PutMode::Create.

Rationale for this change

This is simply what is necessary to fix #829.

Are there any user-facing changes?

Yes, but this change brings behavior in-line with documentation, so there's no documentation changes needed. It may need calling-out in release notes, though, if people were relying on Precondition being returned in this case instead of AlreadyExists.

@alamb alamb 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.

Thank you @itsjunetime -- this makes sense to me. I took the liberty of merging this branch up from main and pushing a unit test to prevent regressions

@alamb
alamb merged commit f3fe994 into apache:main Aug 17, 2026
9 checks passed
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.

Using PutMode::Create on Azure puts doesn't return AlreadyExists on failure

2 participants