Repository navigation
Conversation
|
Workflow [PR], commit [f4949e5] Summary: ❌
|
e9b0fce to
eb00a91
Compare
f2015e3 to
3908fef
Compare
b4f7efc to
8e1a1d4
Compare
LLVM Coverage Report
Changed lines: Changed C/C++ lines covered: 299/598 (50.00%) · Uncovered code |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Object file sizes28 object files changed (+297.89 KiB total), 0 added.
719 more object files are built by the master warmup baseline only (it builds every object-file target, a pull request build only Compile time of recompiled translation units148 translation units recompiled, 1298 s compile time in total, 148 of them have a recent master baseline. Median compile-time ratio to the baselines is ×0.95 (machine-speed difference or a change affecting every TU); per-TU deltas below are relative to that ratio. Symbol sizes
|
184a3da to
9c58f4f
Compare
Cherry-pick of ClickHouse#107960 Add an optional cache for vended credentials of REST data lake catalogs, controlled by the new `DataLakeCatalog` database setting `vended_credentials_cache_ttl` (seconds, default `300`, `0` disables caching). Azure read/write buffers, listing, delete paths and metadata probes refresh credentials through the catalog callback once on an authentication error. Adapted to antalya-26.8: * `ICatalog::getCredentialsConfigurationCallback` has no `table_metadata` parameter here: `RestCatalog` checks the table identity against `storage_id.uuid`, and `UnityCatalog` picks Azure or S3 credentials by the content of the credentials response. * `UnityV2Catalog` does not exist here, so its hunk is skipped. * `ReadBufferFromAzureBlobStorage` keeps the existing `blob_client` member instead of the upstream lazy `getBlobClient` accessor; `checkReturnedRange` does not exist here. * `AzureObjectStorage` keeps plain `connection_params` and `auth_method`; there is no `cloneImpl` or `successful_objects` out-parameter here.
`DeltaLakeMetadataDeltaKernel::write` requests `READ_WRITE` credentials only when `hasCredentialsRefreshCallback` is true, so Azure-backed Unity tables kept writing with the `READ` token. Mirror `S3ObjectStorage`: rebuild the container client from the refreshed `ConnectionParams` and publish them together with the client.
…ation tests (amd_asan_ubsan, flaky)
# Conflicts: # src/Databases/DataLake/RestCatalog.cpp # src/Databases/DataLake/StorageCredentials.h # src/Databases/DataLake/UnityCatalog.cpp # src/Databases/DataLake/UnityV2Catalog.cpp
Now, new vended credentials are requested on each metadata request. This PR adds an (optional) cache for creds with configurable TTL.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Add option to cache vended credentials for REST catalogs; add a setting
vended_credentials_cache_ttl(seconds). 300 by default. 0 means no caching.Workflow [PR]
Sync PR [sync-upstream/pr/107960]