Repository navigation
Conversation
…ests-on-io-pool Read Iceberg manifest files on the IO thread pool and remove the manifest decode pool Conflicts committed as-is, conflict markers included: - programs/local/LocalServer.cpp (both modified) - programs/server/Server.cpp (both modified) - src/Client/BuzzHouse/Generator/SessionSettings.cpp (both modified) - src/Core/ServerSettings.cpp (both modified) - src/Core/Settings.cpp (both modified) - src/IO/SharedThreadPools.h (both modified) - src/Storages/ObjectStorage/DataLakes/Iceberg/IcebergIterator.cpp (both modified) - src/Storages/ObjectStorage/DataLakes/Iceberg/IcebergIterator.h (both modified) - src/Storages/ObjectStorage/DataLakes/Iceberg/IcebergMetadata.cpp (both modified) - src/Storages/ObjectStorage/DataLakes/Iceberg/ManifestFile.cpp (both modified) - src/Storages/ObjectStorage/DataLakes/Iceberg/StatelessMetadataFileGetter.cpp (both modified) - tests/integration/test_storage_iceberg_with_spark/test_data_manifest_decode_concurrency.py (both modified) - tests/performance/iceberg_scale_manifests.xml (missing on the branch, changed by the port) - tests/performance/iceberg_suite_shared_rw_features.xml.inc (missing on the branch, changed by the port)
|
Port-AL: this PR has unresolved cherry-pick conflicts AI could not resolve them (review failed: AI did not report an outcome), so the cherry-pick is committed as-is (6630095), conflict markers included, in:
Resolve them on this branch, then mark the PR ready for review. |
|
@blau-ai fix fasttest |
The cherry-pick committed conflict markers, breaking the build. Resolve them: keep the branch's CAS blob upload pool, ParquetEncoder pool, external storage resolution, deletion vector handling and totalRows; take upstream's manifest read-ahead on the IO pool; pass the external storage cache to the prefetcher; declare the removed settings obsolete in the branch's MAKE_OBSOLETE format; drop estimateRead and profile events that do not exist on this branch, and the two performance tests that were never on the branch.
Fast test: fixed the build (conflict markers were committed)Root cause: Fast test failed at Build ClickHouse: The cherry-pick of ClickHouse#127100 committed Fix: pushed fd74cab to
Validation: I committed the change and started a Debug build of fd74cab on the blau builder ( Still to do by a human:
|
CI triage for
|
| Check | Classification | PR-caused? | Next step |
|---|---|---|---|
RegressionTestsRelease / Swarms / swarms (x86_64), scenario object storage cluster profile events with overloaded node |
Iceberg cluster task-distribution regression | Likely yes (medium confidence) | Re-run the job. If it fails again, look at how the initiator's iterator feeds StableTaskDistributor (see below) |
GrypeScanServer (-alpine) / Grype Scan |
CVE scan of the base image | No (high) | None. The same check fails on base 0f2d3abefe |
GrypeScanKeeper / Grype Scan |
CVE scan of the base image | No (high) | None. The same check fails on base 0f2d3abefe |
DCO |
action_required |
n/a | Sign-off or DCO override needed before merge |
All other checks are green. These results come from a single CI run (2026-11-26). The base branch has moved since then, and a rebase or merge would also pick up its Grype fixes.
Swarms / swarms: likely PR-caused (medium confidence)
Only one scenario fails (job log):
✘ [ Fail ] '/swarms/feature/feature/object storage cluster profile events with overloaded node' (16s 982ms)
File ".../swarms/tests/object_storage_cluster_profile_events.py", line 215
assert int(sent_to_non_matched_replica) > 0, error()
^ is '0'
What the test does: it creates an Iceberg table with 4 large files (500k rows each), followed by 100 small files. It then queries the table through the swarm cluster with max_threads=1 and lock_object_storage_task_distribution_ms=2. Because the replicas that own the large files are busy, it expects some small files to be stolen by other replicas, so ObjectStorageClusterSentToNonMatchedReplica should be greater than 0. In this run it was 0. The row count assertion passed, so the result is correct; only the work distribution changed.
Why I think the PR is responsible:
- The scenario passes on the base branch.
RegressionTestsRelease / SwarmsandRegressionTestsAarch64 / Swarmsare green on base199f1b4bc8,a0530ca971and0f2d3abefe. It also passes on sibling 26.8 PRs Keep Iceberg annotations of struct, list and map fields made optional #2986 and Antalya 26.8: ResolvecurrentDatabase()in Hybrid segment metadata #2972. - The PR rewrites exactly the code this test depends on: how
IcebergIteratorproduces data files. Before, a producer thread and a decode pool filled a queue ahead of the consumer. Now manifests are only prefetched as bytes, and the thread that callsnext()parses them. The upstream description of Read Iceberg manifest files on the IO thread pool and remove the manifest decode pool ClickHouse/ClickHouse#127100 calls this out: "max_threads = 1, cold: 0.118 s / 0.469 s (parsing is serial on one reading thread; the initiator of the*Clustertable functions also reads the iterator from one thread)". - On the initiator,
StorageObjectStorageStableTaskDistributor::getMatchingFileFromIteratorcallsiterator->next(0)under the distributor lock. Stealing (getAnyUnprocessedFile) only happens for files already inunprocessed_fileswhose owner has been inactive for longer thanlock_object_storage_task_distribution_ms. If files now come out of the iterator more slowly or in a different rhythm, the owning replicas can collect all their files before the 2 ms deferral expires, so nothing is stolen.
Caveat: this is a single run of a timing-sensitive scenario, and I could not reproduce it locally (the builder runs stateless and unit tests, not the multi-node swarms regression suite). That is why the confidence is medium rather than high.
Suggested next steps:
- Re-run the failed
Swarmsjob (and the aarch64 one, if it gets scheduled). If it is green twice, treat this as flaky timing. - If it fails again: on the initiator, measure how long
IcebergIterator::nexttakes per file when 104 files are spread over a few manifests. If the small files from the last manifests show up only after the large-file replicas have finished, either:- prefetch-parse the data manifests on the initiator for the
*Clusterpath, so the distributor sees files as fast as before the PR, or - accept the new behaviour and adjust the regression test in
Altinity/clickhouse-regression(for example, a largerlock_object_storage_task_distribution_msor more small files), stating why in this PR.
- prefetch-parse the data manifests on the initiator for the
Grype Scan (server-alpine, keeper): pre-existing, not PR-caused
These checks scan the published Docker images for CVEs in OS packages. The PR does not touch Docker files or dependencies; it only changes Iceberg code, settings and tests. The same two scans (GrypeScanServer (-alpine) and GrypeScanKeeper) fail on base commit 0f2d3abefe (MasterCI 2026-11-27), while the non-alpine server scan passes there, which is exactly the pattern seen here. They are green on newer base commits (a0530ca971, 199f1b4bc8), so syncing with antalya-26.8 should clear them. No action is needed on the PR's code.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Iceberg manifest files are now read ahead on the IO thread pool, up to 64 at a time, and parsed by the threads that read the table, so a query over a table with many manifests on object storage overlaps more round trips (3.2x faster on 200 manifests with 400 ms per read). The thread pool for decoding manifests is removed, and the settings
iceberg_manifest_decode_concurrency(and its old nameiceberg_delete_manifest_decode_concurrency),iceberg_file_entries_queue_size,max_iceberg_manifest_decode_thread_pool_size,max_iceberg_manifest_decode_thread_pool_free_sizeandiceberg_manifest_decode_thread_pool_queue_sizeare obsolete and have no effect. (ClickHouse#127100 by @groeneai)Documentation entry for user-facing changes
...
CI/CD Options
Exclude tests:
Regression jobs to run: