Repository navigation
sync private - #108080
sync private#108080
Conversation
|
Workflow [PR], commit [5c8ad7d] Summary: ❌
AI ReviewSummaryThis PR syncs Iceberg metadata plumbing from private code, adds an Iceberg metadata deserialization helper, disables the compaction implementation in Cloud builds, and leaves a new assertion in Missing context / blind spots
Findings
💡 Nits
Tests
Final VerdictStatus: Minimum required action: remove or replace the stale |
|
|
||
| auto metadata_object | ||
| = getMetadataJSONObject(metadata_file_path, object_storage, persistent_components.metadata_cache, local_context, log, compression_method, persistent_components.table_uuid); | ||
| chassert(persistent_components.format_version == metadata_object->getValue<int>(f_format_version)); |
There was a problem hiding this comment.
persistent_components.format_version is still only the version observed when this metadata object was constructed. getHistory fetches the latest metadata file again, so a table opened at format-version 1 and then externally upgraded to 2 can still reach this assertion through OPTIMIZE/compaction even though the rest of the Iceberg reader already tolerates that upgrade by parsing each metadata file on its own terms. Please drop this assertion too, or validate only an invariant that must actually remain stable across metadata refreshes.
|
great pr! |
LLVM Coverage Report
Changed lines: Changed C/C++ lines covered by tests: 18/53 (33.96%) | Lost baseline coverage: none · Uncovered code |
|
Will merge it due to I got accept here #107335 |
9073562
…story `PersistentTableComponents::format_version` is captured when the table is opened and is documented as allowed to go stale after an external upgrade. `getHistory` re-reads the latest metadata file and asserted that its `format-version` still equals the cached value, so a debug or sanitizer server aborted when another engine upgraded an attached table and then `system.iceberg_history` or `OPTIMIZE` (which calls `getHistory`) ran. Seen in Stress test (amd_msan) on PR ClickHouse#125542 (STID 2508-400e), where the AST fuzzer turned a `system.iceberg_history` query into an unfiltered scan that reached the table 05394 had just upgraded to format version 3. ClickHouse#100407 removed this comparison from both `getState` and `getHistory`; the ClickHouse#108080 sync brought both back and 6520200 removed only the `getState` one. `getHistory` computes everything from the freshly read metadata, and release builds compile `chassert` out, so there is no release-build behavior change. Extend the ClickHouse#86776 regression case to compare `system.iceberg_history` before and after the v1 -> v2 upgrade; it aborts node1 on master. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Changelog category (leave one):
Version info
26.7.1.119