Skip to content

Antalya 26.6: Cache vended catalog credentials - #2180

Open
zvonand wants to merge 3 commits into
antalya-26.6from
feature/antalya-26.6/pr-1923
Open

Antalya 26.6: Cache vended catalog credentials#2180
zvonand wants to merge 3 commits into
antalya-26.6from
feature/antalya-26.6/pr-1923

Conversation

@zvonand

@zvonand zvonand commented Aug 6, 2026

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Improvement

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

Add caching for REST catalog vended credentials. Added a new setting vended_credentials_cache_ttl: maximum cache entry lifetime (in seconds) for vended credentials (REST catalogs only). Default 300; 0 disables caching (#1923 by @zvonand).

CI/CD Options

Exclude tests:

  • Fast test
  • Integration Tests
  • Stateless tests
  • Stateful tests
  • Performance tests
  • All with ASAN
  • All with TSAN
  • All with MSAN
  • All with UBSAN
  • All with Coverage
  • All with Aarch64
  • All Regression
  • Disable CI Cache

Regression jobs to run:

  • Fast suites (mostly <1h)
  • Aggregate Functions (2h)
  • Alter (1.5h)
  • Benchmark (30m)
  • ClickHouse Keeper (1h)
  • Iceberg (2h)
  • LDAP (1h)
  • Parquet (1.5h)
  • RBAC (1.5h)
  • SSL Server (1h)
  • S3 (2h)
  • S3 Export (2h)
  • Swarms (30m)
  • Tiered Storage (2h)

Cherry-picked from #1923.

zvonand added 2 commits August 3, 2026 16:59
…next commit)

---
Original cherry-pick message follows:

Merge pull request #1923 from Altinity/fix/antalya-26.3/iceberg-creds

Antalya 26.3: Cache vended catalog credentials
# Conflicts:
#	docs/en/engines/database-engines/datalake.md
#	src/Common/ProfileEvents.cpp
#	src/Databases/DataLake/DatabaseDataLake.cpp
#	src/Databases/DataLake/RestCatalog.cpp
#	src/Databases/DataLake/RestCatalog.h
#	src/Databases/DataLake/StorageCredentials.h
Kept only the source PR's own additions; dropped "theirs"-side context that
belongs to other PRs and is absent on antalya-26.6 (`namespaces` docs row,
`object_storage_cluster` setting extern, `RestCatalog::AllowedNamespaces`,
the REST/Glue/Unity catalog ProfileEvents block, and the older
`std::optional<AccessToken> access_token` member).

Adapted: placed the two new ProfileEvents rows (DataLakeRestCatalogCredentialsVended / ...CacheHits) at the end of APPLY_FOR_BUILTIN_EVENTS and declared them via a new `namespace ProfileEvents` block plus `#include <Common/ProfileEvents.h>` in RestCatalog.cpp — antalya-26.6 does not have the Iceberg catalog ProfileEvents instrumentation (PR #1868, commit 23a9f20) that the source PR extended
Adapted: moved the setVendedCredentialsCacheTTL() call into antalya-26.6's lazy `DatabaseDataLake::getCatalog()` accessor (catalog construction now lives in `initialize()`), right before `return catalog_impl;` as in the source PR
Adapted: implemented `isEmpty()` for `GCSCredentials`, a subclass added on antalya-26.6 after the source PR, which the PR's new pure-virtual `IStorageCredentials::isEmpty()` requires
@zvonand zvonand added releasy Created/managed by RelEasy antalya-26.6 forwardport This is a frontport of code that existed in previous Antalya versions ai-resolved Port conflict auto-resolved by Claude labels Aug 6, 2026
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown

Workflow [PR], commit [6a479f4]

@zvonand zvonand mentioned this pull request Aug 7, 2026
67 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-resolved Port conflict auto-resolved by Claude antalya-26.6 forwardport This is a frontport of code that existed in previous Antalya versions releasy Created/managed by RelEasy

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants