Skip to content

Conversation

ianton-ru
Copy link

@ianton-ru ianton-ru commented Jun 4, 2025

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 to CHANGELOG.md):

Fixed Context expiration for Iceberg queries (introduced in #796)

Since 25.3 DataLakeDatabase creates storage with copy of context - https://github.com/Altinity/ClickHouse/blob/antalya-25.3/src/Databases/DataLake/DatabaseDataLake.cpp#L401
But no one takes ownership to this copy of context, and it is destroyed after end of tryGetTableImpl.
After #584 metadata are used to filter object, and can be loaded after table created.
In this case query failed with error

DB::Exception: Context has expired.

With this fix IcebergMetadata takes ownership to context.

@Enmk Enmk changed the title Take in IcebergMetadata ownership to context 25.3 Antalya - Bugfix for Iceberg: Take in IcebergMetadata ownership to context Jun 4, 2025
@Enmk Enmk changed the title 25.3 Antalya - Bugfix for Iceberg: Take in IcebergMetadata ownership to context 25.3 Antalya - Bugfix for Iceberg: Take ownership of Context for IcebergMetadata Jun 4, 2025
@Enmk Enmk added the bugfix label Jun 4, 2025
@Enmk Enmk merged commit 1637aa2 into antalya-25.3 Jun 4, 2025
325 of 352 checks passed
@svb-alt svb-alt added antalya-25.6 port-antalya PRs to be ported to all new Antalya releases and removed antalya-25.6 labels Jul 14, 2025
ianton-ru pushed a commit that referenced this pull request Aug 4, 2025
…ntext

25.3 Antalya - Bugfix for Iceberg: Take ownership of Context for IcebergMetadata
@ianton-ru
Copy link
Author

Does not required in 25.6, fixed in upstream by other way (send context as parameter to each method)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

antalya antalya-25.3 antalya-25.3.3 bugfix port-antalya PRs to be ported to all new Antalya releases

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants