Skip to content

Read Iceberg manifest files on the IO thread pool and remove the manifest decode pool - #127100

Merged
alexey-milovidov merged 10 commits into
ClickHouse:masterfrom
groeneai:iceberg-read-manifests-on-io-pool
Oct 25, 2026
Merged

alexey-milovidov merged 10 commits into
ClickHouse:masterfrom
groeneai:iceberg-read-manifests-on-io-pool

Conversation

@groeneai

@groeneai groeneai commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator

Closes: #127061

Changelog category (leave one):

  • Performance Improvement

Changelog entry (a user-readable short description of the changes that goes into 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 name iceberg_delete_manifest_decode_concurrency), iceberg_file_entries_queue_size, max_iceberg_manifest_decode_thread_pool_size, max_iceberg_manifest_decode_thread_pool_free_size and iceberg_manifest_decode_thread_pool_queue_size are obsolete and have no effect.

Description

As proposed in #127061: fetch manifests on the IO thread pool without decoding there, and remove the decode pool and its settings.

Before, fetching a manifest and parsing it were one task on a dedicated pool, capped at iceberg_manifest_decode_concurrency (16), so a walk over N uncached manifests cost about N / 16 round trips.

Now the IO tasks only read, up to 64 manifests (64 MiB) ahead, through getOrSetManifestFile, so concurrent queries still share one read per manifest. The cached cell parses its bytes on first use. Parsing costs about 2 ms per manifest, which caps a single parsing thread at ~500 manifests/s, so the threads reading the table do it: each continues an idle partially read manifest or parses the next one. With one reading thread the order is unchanged. Delete manifests are parsed the same way before the first data file is returned.

Release build, 200 manifests, 16 CPUs (base / this PR):

  • cold, 400 ms per read (failpoint): 5.32 s / 1.65 s
  • cold, local: 0.122 s / 0.117 s; warm: 0.016 s / 0.015 s; 100 delete manifests: 0.100 s / 0.100 s
  • max_threads = 1, cold: 0.118 s / 0.469 s (parsing is serial on one reading thread; the initiator of the *Cluster table functions also reads the iterator from one thread)
  • 4 identical cold queries at once read each manifest once on both builds.

The decode tests now vary max_threads; the pool test and the timing test of the removed setting are deleted, and a new stateless test reads a table with more manifests than the read-ahead window. Validated with 103 local Iceberg stateless tests x3 and 193 Iceberg integration tests.

🤖 Generated with Claude Code


Workflow [PR]
Sync PR [sync-upstream/pr/127100]

Version info

  • Merged into: 26.11.1.765-master (included in 26.11 and later)

groeneai and others added 4 commits October 21, 2026 02:07
… reading threads

A manifest walk over an Iceberg table with many manifests was bounded by
`iceberg_manifest_decode_concurrency`: fetching a manifest (a remote round trip)
and parsing it (CPU, about 2 ms per manifest) were one task on a dedicated pool,
so only that many round trips overlapped (issue ClickHouse#127061: 671 manifests, 9.6 s at
4, 4.0 s at 32).

Manifest files are now read ahead on the IO thread pool, 64 at a time and at most
64 MiB of manifests not in the metadata files cache, and nothing is parsed there.
The read goes through `getOrSetManifestFile` as before, so concurrent queries
still share one read per manifest and `SYSTEM CLEAR ICEBERG METADATA CACHE` keeps
its semantics; the cached cell holds the bytes and parses them on the first
`getDeserializer()` call (`std::call_once`).

The threads that call `IcebergIterator::next` parse the manifests: each one
continues an idle partially read manifest or parses the next one, so parsing
keeps the parallelism of the reading threads; with one reading thread the files
come in the manifests' order as before. Delete manifests are parsed by the
threads that need them, and the last one sorts the deletes. `totalRows` reads
ahead and parses on the calling thread.

Removed: the manifest decode thread pool and its metrics, the producer thread,
the bounded queue and the stop flag of `ManifestFileIterator`,
`ParallelManifestDecode.h`. The query settings `iceberg_manifest_decode_concurrency`
(and its old name `iceberg_delete_manifest_decode_concurrency`) and
`iceberg_file_entries_queue_size`, and the server settings
`max_iceberg_manifest_decode_thread_pool_size`,
`max_iceberg_manifest_decode_thread_pool_free_size` and
`iceberg_manifest_decode_thread_pool_queue_size` are obsolete: accepted and ignored.

The integration tests of the decode concurrency now vary `max_threads` instead;
the test of the removed pool and the timing test of the removed setting are
deleted.

Closes ClickHouse#127061

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The iterator built two manifest prefetchers, one for the delete manifests and
one for the data manifests, so a snapshot with delete manifests had up to 128
reads and 128 MiB in flight instead of 64 and 64 MiB. Now one prefetcher reads
the delete manifests followed by the data manifests: while a delete manifest is
not taken, every leased slot belongs to a delete manifest that is in the window
or being parsed, and the data reads fill the slots behind them.

A stored exception is copied with `copyMutableException` before it is rethrown
to another thread.

The new test reads a table with more manifests than the read-ahead window, with
one and with several reading threads, with and without the metadata cache.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…manifests

Before any delete the snapshot summary carries `total-records` and zero delete
totals, so the trivial count was answered from the summary and never read a
manifest. After the deletes it has to walk the manifest list: it reads the 70
data manifests, more than the read-ahead window, before it meets a delete
manifest and falls back to reading the table.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Shorten the ensureDeletesReady header comment to one line and drop a comment repeating the stored-exception note at the top of the same loop.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@groeneai

Copy link
Copy Markdown
Collaborator Author
Internal second-model review: adjudication log (click to expand)

Pre-publication review by an independent model (engine: codex; 3 findings over 3 rounds, 0 on the final head) plus my own review (4 findings).

# Sev Finding Verdict Evidence / action
1 ⚠️ Delete and data manifests had separate read-ahead windows, so up to 128 reads / 128 MiB were in flight per query (IcebergIterator.cpp) AGREE one window, delete manifests first (fix round 1)
2 ⚠️ No test distinguishes the IO-pool read-ahead from the old decode pool by timing; no test asserts the removed settings are obsolete DISAGREE the in-tree rulebook bans wall-clock timing assertions and tests that pin a removed setting; the speed-up is measured A/B (5.3 s to 1.65 s on 200 manifests at 400 ms per read)
3 ⚠️ No CI test reads more manifests than the read-ahead window AGREE new stateless test with 70 data and 3 delete manifests (fix round 1)
4 ⚠️ The *Cluster initiator reads the iterator from one thread, so it parses serially like max_threads = 1 AGREE stated in the PR description
5 💡 A stored exception was rethrown to several threads as one object AGREE copyMutableException (fix round 1)
6 ⚠️ The new test's trivial count ran before any delete, so the snapshot summary answered it and the totalRows manifest walk never ran AGREE the count now runs after the deletes; with the window capped at 64 it prints 64 instead of 67 (fix round 2)

Severity: ❌ blocker / ⚠️ major / 💡 nit. DISAGREE verdicts carry recorded evidence and are terminal per finding.

@groeneai

Copy link
Copy Markdown
Collaborator Author
Pre-PR validation gate (click to expand)
# Question Answer
a Deterministic repro? Yes: 200 one-file manifests, cache off, failpoint iceberg_slow_manifest_read (400 ms per read): 5.3 s on every base run.
b Root cause explained? Fetch and parse of a manifest were one task on a pool capped at iceberg_manifest_decode_concurrency (16), so only 16 round trips overlapped.
c Fix matches root cause? Yes: reads move to the IO pool, 64 / 64 MiB ahead (one window, delete manifests first), with no parsing there; the pool and settings that only drove the coupled task are removed.
d Test intent preserved / new tests added? Performance change, no timing test added. The decode integration tests keep every correctness case over max_threads 1 and 16; test_manifest_read_performance still asserts read overlap; a new stateless test reads 70 data + 3 delete manifests, more than the read-ahead window, with the data reads and the trivial count (both fail when the window is never refilled).
e Both directions demonstrated? Same release configure, base vs this PR: 5.32 s vs 1.65 s (400 ms per read); 4 concurrent queries 5.36 s vs 2.85 s, each manifest read once on both.
f Fix is general across code paths? Data path, delete path and totalRows all moved; every other getManifestFile caller parses on first use on its own thread.
g Fix generalizes across inputs (params/datatypes/wrappers)? Cache on/off, cache bypass by iceberg_metadata_log_level, position/equality deletes, format v1/v2/v3, partition pruning, IN (subquery), LIMIT, empty table, more manifests than the window: 103 stateless tests x3 and 193 integration tests.
h Backward compatible? (maintainer-approved exception only) All six settings stay declared as obsolete (accepted, ignored), history recorded under 26.11.
i Invariants and contracts preserved? Each live entry returned once (single-thread order unchanged), deletes complete before the first data file, one read per manifest per wave of concurrent queries, no IO task outlives the iterator, errors rethrown to every caller.

Session id: cron:clickhouse-impl-slot-4:20261021-040400

@groeneai

Copy link
Copy Markdown
Collaborator Author

cc @scanhex12 @hanfei1991, could you review this and add the can be tested label so CI runs? Manifest files are now read ahead on the IO thread pool (up to 64 files / 64 MiB, no parsing there) and parsed by the threads that read the table, which replaces the manifest decode pool and its settings.

@clickhouse-gh

clickhouse-gh Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [dad1ac0]

Summary: ✅


AI Review

Summary

Moves Iceberg manifest reads to a bounded window on the IO thread pool, parses manifests on reading threads, and makes the former decode-pool settings obsolete. No unresolved findings remain; the previous hand-off failure is addressed in the current code.

Missing context / blind spots
  • ⚠️ CI for reviewed head dad1ac07901c7418d7a1e830801b79bdb8ca8fcb is still in progress. No local build or runtime tests were run during this review; completing the current-head functional and sanitizer jobs would close this validation gap.
Final Verdict

Status: ✅ Approve. No additional changes requested.

@clickhouse-gh clickhouse-gh Bot added pr-performance Pull request with some performance improvements comp-datalake Data lake table formats (Iceberg/Delta/Hudi) integration. labels Oct 21, 2026
@alexey-milovidov alexey-milovidov added the can be tested Allows running workflows for external contributors label Oct 21, 2026
groeneai and others added 3 commits October 21, 2026 06:18
Appending a parsed delete manifest's files, or a partially read data
manifest, to the shared state allocates under the lock. If that throws,
the counter of manifests in progress is already decremented but no
exception is stored and nobody is notified, so another reader waiting
for that manifest sleeps forever and the query hangs instead of failing.

Treat a failure there like a parse failure: store it and notify on
every exit. Checked with a local-only fault injection at both hand-offs
(two readers, one manifest, slow manifest read): before, the query
hangs; after, it fails with the injected error.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ahead is dropped

The read-ahead window schedules up to 64 manifest reads on the IO
thread pool, and its destructor waits for all of them. A query that
stops early (LIMIT, cancellation, an exception) then performs every
queued read and waits for it, which is slow when the IO pool is busy.
The removed decode pool had stop flags for this.

A shared flag set by the destructor makes a read that has not started
return immediately. Measured on a debug build, 100 one-file manifests,
cold read, 400 ms per manifest read (failpoint), IO pool of 4 threads,
`LIMIT 1`: 7.0 s -> 0.98 s. With the default IO pool and for full
reads the timings and results are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A table keeps the metadata files cache of the context it was created
with, so `use_iceberg_metadata_files_cache = 0` on a query to it still
serves every manifest from the cache (measured: 0 manifest reads, 78
cache hits). Through `icebergLocal` the same reads miss the cache (73
manifest reads), so the read-ahead of more than 64 files on the IO
thread pool is now exercised.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@clickhouse-gh

clickhouse-gh Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Build profile diff (arm_release)

Comparing dad1ac079 with master ccc3eef87 (stripped binary size, per-symbol sizes and ThinLTO time; compile times per translation unit against the most recent warmup build that recompiled it).

✅ No significant changes.

Binary sizes

programs/clickhouse-stripped: smaller than the master baseline by the known offset between the two builds, so the difference is not shown. A delta that differs from the offset by more than 50% of it is shown, in either direction.

The official master build is compiled with -g and a pull request build is not, and XRay counts debug instructions towards its instrumentation threshold, so master instruments thousands of functions more and its binary is ~0.4% larger no matter what the pull request does.

Object file sizes

60 object files changed (-33.02 KiB total), 0 added.

Object file Master PR Δ
src/CMakeFiles/dbms.dir/Storages/ObjectStorage/DataLakes/Iceberg/IcebergMetadata.cpp.o 1.47 MiB 1.39 MiB -84.14 KiB (-5.59%)
src/CMakeFiles/dbms.dir/Storages/ObjectStorage/DataLakes/Iceberg/IcebergIterator.cpp.o 362.56 KiB 281.02 KiB -81.54 KiB (-22.49%)
src/CMakeFiles/dbms.dir/Storages/ObjectStorage/DataLakes/Iceberg/ManifestFile.cpp.o 48.40 KiB 121.19 KiB +72.79 KiB (+150.40%)
src/CMakeFiles/dbms.dir/Storages/ObjectStorage/DataLakes/Iceberg/StatelessMetadataFileGetter.cpp.o 231.29 KiB 297.11 KiB +65.82 KiB (+28.46%)

719 more object files are built by the master warmup baseline only (it builds every object-file target, a pull request build only clickhouse-bundle) and not compared.

Compile time of recompiled translation units

550 translation units recompiled, 5154 s compile time in total, 549 of them have a recent master baseline.

Median compile-time ratio to the baselines is ×1.06 (machine-speed difference or a change affecting every TU); per-TU deltas below are relative to that ratio.
The matched translation units cost +299.1 s (+6%) in total before that adjustment.

Translation units without a recent master baseline:

  • programs/keeper/Keeper.cpp (clickhouse-keeper): 8.3 s

Job report

@alesapin alesapin self-assigned this Oct 21, 2026
@groeneai

Copy link
Copy Markdown
Collaborator Author

CI finish ledger - b3ae484

Every failure below has an owner: a fixing PR (mine or external), or a full-effort fix task
whose fixing-PR link will be posted here when it opens. Only CH Inc sync is exempt.

Check / test Reason Owner / fixing PR
Performance Comparison (arm_release, master_head, 5/6) / new_json_type #1, json_to_string #1 slower, not from this PR (it changes only how Iceberg manifests are fetched and parsed, and neither query reads Iceberg): new_json_type #1 0.336 s -> 0.404 s (+20%) is the one blocking dashboard regression, json_to_string #1 1.61 s -> 2.16 s. This is the arm slow mode that follows the per-start code placement of the binary: in the last 14 days the same slower verdict was on 29 other PRs and 2 master runs for new_json_type #1, and on 71 other PRs and 16 master runs for json_to_string #1 #125949 (mine, open), with the harness side in #126977 (mine, open)
Mergeable Check, PR praktika rollups of the row above #125949 and #126977 (the owners of the row above)
Sync - CH Inc sync (private, not actionable by me)

CIDB has no FAIL or ERROR row on this head.

Session id: cron:our-pr-ci-monitor:20261021-140009

@alexey-milovidov alexey-milovidov self-assigned this Oct 22, 2026
@alexey-milovidov

Copy link
Copy Markdown
Member

Parsing costs about 2 ms per manifest

Interesting, why. 500 manifests per second sounds okay, but how many can we have in total?
I think even single threaded, it can be greatly optimized. At least "parsing manifests" does not sound like something heavy, isn't it just a list of references to files?

@alexey-milovidov

Copy link
Copy Markdown
Member

As it was bounded by IO and we make the effective IO parallelism better in this PR, the net effect is positive. But we are also declaring the manifest parsing thread pool obsolete, as we wanted. Let's double-check that this is okay.

@groeneai

Copy link
Copy Markdown
Collaborator Author

Parsing costs about 2 ms per manifest

I profiled it (perf on the official 26.11.1.211 build, 200 manifests with one data file each, one decoding thread). The entries are cheap: one manifest with 2000 entries (451 KB) is read and parsed in 0.02 s for the whole query, under 10 us per entry. The ~2 ms is a fixed cost per manifest file, and ~80% of it is one thing:

  • AvroForIcebergDeserializer::extractSubcolumnWithType. Each field the entry parser reads (status, data_file.file_path, data_file.lower_bounds, ...) is resolved with hasSubcolumn, getSubcolumn and getSubcolumnType, and each of them walks all streams of the whole nested manifest_entry type (IDataType::getSubcolumnInfo), creating serializations and names for every substream. So three walks of the full type per field, per manifest.
  • ~12% (~0.24 ms) is the Avro reader, mostly compiling the schema from the file header.

A prototype that enumerates the subcolumns once per manifest (IDataType::forEachSubcolumn, the current lookup kept as the fallback), same build, 200 one-file manifests, cache off, max_threads = 1:

this PR + prototype
manifest walk only (WHERE id < 0) 0.413 s 0.075 s
full read 0.455 s 0.120 s
one manifest with 2000 entries 0.020 s 0.017 s

For reference, the official master build does the full read in 0.25 s with the default iceberg_manifest_decode_concurrency = 4 and 0.12 s with 16. So after this change one thread parses as fast as the 16-thread pool did, which also answers the double-check: after this PR the pool only mattered where one thread reads the iterator (max_threads = 1, the initiator of the *Cluster table functions).

How many manifests: the spec does not bound it. The Java library's merging append compacts small manifests toward 8 MB once 100 can be merged (commit.manifest.min-count-to-merge), a fast append never merges, and the ClickHouse writer adds one manifest per INSERT (200 inserts gave 200 manifests in the snapshot here). The table in #127061 has 671, so at these per-manifest costs roughly 1.3 s of serial parsing now and 0.25 s with the change.

I'll send it as a separate PR, since the code is independent of this one and master's decode pool runs it too. If you prefer it here, I'll add it to this PR.

@alexey-milovidov

Copy link
Copy Markdown
Member

@groeneai, This is great!

This means that the original idea for adding a thread pool was wrong, and we should optimize the code instead - exactly as I suspected. Please send a new PR with these optimizations.


void ManifestFilesPrefetcher::fill()
{
auto runner = threadPoolCallbackRunnerUnsafe<ManifestFileCacheableInfo>(getIOThreadPool().get(), ThreadName::ICEBERG_ITERATOR);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

However... can we use AsynchronousReadBuffer for that, so everything happens automatically?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because we already use it for reading files from S3, iirc.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked, and it cannot do this part by itself. AsynchronousBoundedReadBuffer reads ahead inside one file: prefetch() submits one read of buffer_size at the current offset, at most one at a time, and nextImpl does not submit the next one. createReadBuffer calls prefetch() once, at creation, and only for a small object of known size (use_prefetch in StorageObjectStorageSource.cpp). For data files the overlap across files comes from the sources: each one creates the reader of its next file on its own one-thread pool (createReaderAsync) while it reads the current file.

A manifest is one buffer (19-45 KB in #127061), so there is nothing to read ahead inside it. The gain here comes from up to 64 manifests read at once, and something still has to open them ahead, in order, with a bound. The async buffer could only replace the body of the IO task: fill() would create the buffers and call prefetch() instead of running getManifestFile on the IO pool. That is not simpler, and it costs:

  • a HEAD per manifest again: manifests are read without a size (dc0339b) because manifest_length is not reliable (8 of the 266 manifests in the Iceberg test fixtures record a shorter one), and the async buffer needs the size;
  • the read would start outside getOrSetManifestFile, so concurrent queries would each read a manifest that is not cached yet;
  • dropping the read-ahead (e.g. after LIMIT 1) waits for every submitted read, because the buffer's destructor waits for its prefetch; here a read that has not started is skipped (cold LIMIT 1, 100 manifests at 400 ms per read, max_io_thread_pool_size = 4: 7.0 s without the skip, 0.98 s with it).

So I'd keep it as is.

@alexey-milovidov
alexey-milovidov added this pull request to the merge queue Oct 25, 2026
Merged via the queue into ClickHouse:master with commit 4451bca Oct 25, 2026
178 checks passed
@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the pr-synced-to-cloud The PR is synced to the cloud repo label Oct 25, 2026
@groeneai

Copy link
Copy Markdown
Collaborator Author

I sent the optimization as a separate PR: #127782 (200 one-file manifests, metadata cache off, one thread: 0.477 s -> 0.141 s).

opensource-fork-sync Bot pushed a commit to cla7aye15I4nd/opensource-ClickHouse__ClickHouse that referenced this pull request Oct 29, 2026
The test (added by ClickHouse#127100) needs more data manifests than the 64 that
ManifestFilesPrefetcher reads ahead, so it writes 70 of them with 70
INSERTs and then reads them twice on one thread with a cold metadata
cache. Under MSan in the parallel stateless job that costs 1.7-2.6 s per
manifest. In master `Stateless tests (amd_msan, parallel, 3/3)` it ran
16 times since the merge: mean 280 s, p99 533 s, max 543 s of the 600 s
per-test timeout, so a timeout kill is an ordinary tail event.

Per-query time of the 543 s run (master c0e5c9a): 70 INSERTs 111 s,
first ALTER DELETE (cold cache) 176 s, icebergLocal with max_threads = 1
193 s, with max_threads = 8 25 s.

The mean is 4.7x the 60 s MSan cutoff of ClickHouse#115050. Same remedy as
0d02623 (01721_join_implicit_cast_long) and ClickHouse#125128
(05271_promql_label_matcher_pushdown). The test still runs under ASan,
UBSan, TSan, debug and release.

Report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?REF=master&sha=c0e5c9ad4ad2ac0426f2d75bf4ef6764dfc01814&name_0=MasterCI&name_1=Stateless%20tests%20%28amd_msan%2C%20parallel%2C%203%2F3%29

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@snelheidai

Copy link
Copy Markdown

Short multi-threaded Iceberg queries in the performance tests have been slower since this merge, mostly on the aarch64 runners. Today's master runs still show it.

Median client_time, MasterCI arm (m8g.4xlarge), runs from 2026-10-20 to 10-24 (about 110 per query) vs 2026-11-03 to 11-05 (about 60):

Test Query Before Now Change
iceberg_suite_local_tpch #5 (TPC-H Q6) 0.037 s 0.062 s +67%
iceberg_suite_s3_tpch #5 (TPC-H Q6) 0.045 s 0.070 s +56%
iceberg_suite_local_read #20 (max_threads = 16) 0.026 s 0.035 s +34%
iceberg_suite_s3_read #20 (max_threads = 16) 0.033 s 0.043 s +33%
iceberg_suite_local_read #19 (same query, max_threads = 1) 0.143 s 0.142 s -1%
iceberg_suite_s3_read #19 (same query, max_threads = 1) 0.180 s 0.182 s +1%

What changed in the iterator: before, the producer started decoding the data manifests when IcebergIterator was constructed, so entries were already queued when the reading threads asked for them. Now construction only starts reading the manifest files ahead, and the reading threads parse them (createManifestIterator) at their first next(). A thread that finds no free manifest waits in nextDataFileEntry, and the threads share a manifest by taking turns, one entry per turn. I have not confirmed which part costs the time. On a 4-vCPU Graviton3, the wait at max_threads = 4 also grows (0.1-1.4 ms -> 2.9-3.3 ms per query), but the end-to-end time hardly changes, so I could not reproduce the slowdown there.

@groeneai, does this match what you see on CI hardware?

@groeneai

groeneai commented Nov 5, 2026

Copy link
Copy Markdown
Collaborator Author

Yes, it reproduces on the official parent vs merge binaries (Q6 0.039 -> 0.063 s at 16 CPUs): one manifest was handed out one entry per turn, so a stream's next-file read-ahead took a second file while other streams got none. The fix is #129558.

@clickhouse-gh clickhouse-gh Bot added comp-iceberg Apache Iceberg tables: reading and writing Iceberg metadata (snapshots, manifests, schema evoluti... and removed comp-datalake Data lake table formats (Iceberg/Delta/Hudi) integration. labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors comp-iceberg Apache Iceberg tables: reading and writing Iceberg metadata (snapshots, manifests, schema evoluti... pr-performance Pull request with some performance improvements pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

iceberg_manifest_decode_concurrency: make the default 'auto' instead of 4

5 participants