Repository navigation
Conversation
|
@rienath thanks for the feedback. I've moved the full context into #116235 (measurements, repro, landing order). This PR is the DataLakeCatalog piece, second in that order. The one design point to flag: cacheable storages switch to eager init to close a first-use race on the shared DataLakeConfiguration metadata. I'll rebase all six onto master and update here once fork validation is green. |
Keep the DataLakeCatalog storage cache current with master.
CREATE DATABASE with DataLakeCatalog connects to the catalog eagerly on current master, so the stateless test cannot use an unreachable catalog URL. Validate the new settings via clickhouse-format and keep SYSTEM CLEAR idempotency; the cache behavior is covered by the integration test test_catalog_cache_concurrent_first_use.
Replace debug-only `chassert` guards in `ManifestFilesPruner::partitionFilterHash` with real `LOGICAL_ERROR` checks on the `KeyCondition` `RPN` (`AND`/`OR`/`NOT`), so a malformed stack throws an exception in release builds instead of causing undefined behavior. Document only, no behavior change: stateless `ManifestFileIterator::create` `table_snapshot_id` placeholder, `ParquetV3BlockInputFormat` row-group key unambiguity via `path.size()`, partition-only candidate sharing between data and delete iterators, derived `StorageInMemoryMetadata` `TableStateSnapshot` equality safety under `SYSTEM CLEAR ICEBERG METADATA CACHE`, and `DatabaseDataLake::tryGetTableImpl` global-context credentials, TTL race, and `ALTER DATABASE` over-invalidation. Related: ClickHouse#116235 Related: ClickHouse#115873 Related: ClickHouse#115874 Related: ClickHouse#115876 Related: ClickHouse#115877 Related: ClickHouse#115878
…ions Preserve uncached freshness by default. Retain the settings version used to construct each cache entry so a loader finishing after `ALTER DATABASE` cannot serve that storage to queries using new settings. Use a monotonic TTL clock and add an integration check for invalidation after an auth-header change. Patched-binary testing is pending.
|
Closing this draft to keep the review queue clear, per @rienath's request in #116235 to not have the whole series open at once. The design notes and measurements remain in #116235. Nothing here is being pursued right now; if the team wants catalog-resolved storage caching separately, I'd rather open a fresh focused PR than revive this branch. Happy to do that if useful. |
Related: #116235
Reuse resolved
DataLakeCatalogtable storages within an explicitly enabled staleness window.catalog_cache_staleness_msnow defaults to0, preserving uncached behavior unless an operator opts in. Keys separate execution modes, and entries retain their construction-time settings version so a late cache fill cannot be reused with newer database settings.Added an integration check for invalidation after an auth-header change. Exact-head build and selected tests are queued: https://github.com/adonm/ClickHouse/actions/runs/33951076916. This is not yet evidence that TTL, concurrent invalidation, or every credential/refresh path is correct; those remain review work before undrafting.
Kept draft behind the shared-footer PR. Combined-branch benchmark results in the umbrella issue are exploratory and are not isolated attribution for this change.
Changelog category (leave one):
Changelog entry:
Add opt-in caching of resolved
DataLakeCatalogtable storages, with a configurable staleness window and explicit invalidation.Original implementation assisted by DeepSeek V4 Pro; follow-up revisions also used AI assistance.