Skip to content

[26.3] Fix Azure object metadata availability check - #121857

Merged
PedroTadim merged 1 commit into
ClickHouse:26.3from
bbrown-oai:dev/bbrown/azure-metadata-26.3
Sep 25, 2026
Merged

PedroTadim merged 1 commit into
ClickHouse:26.3from
bbrown-oai:dev/bbrown/azure-metadata-26.3

Conversation

@bbrown-oai

@bbrown-oai bbrown-oai commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

ReadBufferFromAzureBlobStorage::getObjectMetadataFromTheLastRequest throws NOT_INITIALIZED after a successful request and accesses an empty optional before one. Correct the inverted availability check and add regression coverage for the pre-request exception.

This backports only the Azure metadata check from d76d4de to 26.3.

Changelog category (leave one):

  • Bug Fix (user-visible misbehavior in an official stable release)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Fix Azure object metadata retrieval throwing NOT_INITIALIZED after a successful request.

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

Version info

  • Merged into: 26.3.33.148

@clickhouse-gh clickhouse-gh Bot added comp-azure Azure Blob Storage integration (credentials, multipart, Azure-specific IO). external Author is not a member of the ClickHouse organization labels Sep 23, 2026
@PedroTadim PedroTadim self-assigned this Sep 24, 2026
@clickhouse-gh

clickhouse-gh Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [812249f]

Summary: ✅

@PedroTadim

Copy link
Copy Markdown
Member

@bbrown-oai try merge 26.3 one more time

`ReadBufferFromAzureBlobStorage` rejected available metadata and
accessed an empty optional before the first successful request.

Negate the availability check and cover `NOT_INITIALIZED` before a
request.
@bbrown-oai
bbrown-oai force-pushed the dev/bbrown/azure-metadata-26.3 branch from 21efafd to 812249f Compare September 24, 2026 16:50
@bbrown-oai

Copy link
Copy Markdown
Contributor Author

thanks @PedroTadim, rebased and force-pushed

@PedroTadim
PedroTadim merged commit a4768a8 into ClickHouse:26.3 Sep 25, 2026
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-azure Azure Blob Storage integration (credentials, multipart, Azure-specific IO). external Author is not a member of the ClickHouse organization

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants