Skip to content

Cherry pick #127673 to 26.10: Throw an exception instead of aborting when an Azure endpoint omits the ETag header - #128660

Merged
PedroTadim merged 8 commits into
backport/26.10/127673from
cherrypick/26.10/127673
Nov 3, 2026
Merged

PedroTadim merged 8 commits into
backport/26.10/127673from
cherrypick/26.10/127673

Conversation

@robot-clickhouse

Copy link
Copy Markdown
Member

Original pull-request #127673

Do not merge this PR manually

This pull-request is a first step of an automated backporting.
It contains changes similar to calling git cherry-pick locally.
If you intend to continue backporting the changes, then resolve all conflicts if any.
Otherwise, if you do not want to backport them, then just close this pull-request.

The check results does not matter at this step - you can safely ignore them.

Before you resolve anything

Conflicts are often caused by a prerequisite change that has not been backported yet, rather than by a real divergence. The bot re-tries this cherry-pick against the release branch on every run, so if that is the case here it will merge itself as soon as the prerequisite lands, and you will see a comment saying so. Manual resolution is only needed while the conflict persists.

Troubleshooting

If the conflicts were resolved in a wrong way

If this cherry-pick PR is completely screwed by a wrong conflicts resolution, and you want to recreate it:

  • delete the pr-cherrypick label from the PR
  • delete this branch from the repository

You also need to check the Original pull-request for pr-backports-created label, and delete if it's presented there

The PR source

The PR is created in the CI job

alexey-milovidov and others added 8 commits October 24, 2026 02:26
…he `ETag`

`Azure::ETag::ToString` aborts the process when the tag is absent, also in
release builds. `ETag` is an optional header, so an Azure-compatible endpoint
that omits it could take the server down on `GetProperties`, `ListBlobs` or
`Download`. Use `AzureBlobStorage::getETag`, which throws
`AZURE_BLOB_STORAGE_ERROR` instead.

Related: #120908

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The fake endpoint serves a blob without the optional `ETag` header. Without the
fix, `ReadBufferFromAzureBlobStorage::setMetadataFromResponse` calls
`Azure::ETag::ToString` and the process aborts; with the fix the read fails with
`AZURE_BLOB_STORAGE_ERROR`.

The PR had no test, so the "new tests" check of the `Bug Fix` category failed:
https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=127673&sha=64f94366e19e65e4544170a9981ba07f2a6f5505&name_0=PR&name_1=Finish%20Workflow
PR: #127673

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Throw an exception instead of aborting when an Azure endpoint omits the `ETag` header
@robot-clickhouse robot-clickhouse added pr-cherrypick Cherry-pick of merge-commit before backporting. Do not use manually - automated use only! do not test disable testing on pull request pr-bugfix Pull request with bugfix, not backported by default labels Nov 2, 2026
@PedroTadim
PedroTadim merged commit cacd527 into backport/26.10/127673 Nov 3, 2026
180 checks passed
@PedroTadim
PedroTadim deleted the cherrypick/26.10/127673 branch November 3, 2026 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not test disable testing on pull request pr-bugfix Pull request with bugfix, not backported by default pr-cherrypick Cherry-pick of merge-commit before backporting. Do not use manually - automated use only!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants