Repository navigation
Bump rocksdb from v10.10.1 to v11.8.1 - #118929
Conversation
The submodule now points to `ClickHouse/v11.8.1` in the ClickHouse fork (ClickHouse/rocksdb#35), which is upstream tag `v11.8.1` plus the existing ClickHouse patch that makes `pmull_runtime_flag` in `crc32c` a `std::atomic<bool>` (TSan fix from ClickHouse/rocksdb#29), exactly as the previous `ClickHouse/v10.10.fb` pin did. Adaptations: - `contrib/rocksdb-cmake/CMakeLists.txt`: add the 13 library sources that upstream added to `LIB_SOURCES` between v10.10.1 and v11.8.1 (blob partition manager, blob gen2 format, blob write batch transformer, `version_util`, read-path blob resolver, multi-scan index iterator, coroutine stats and I/O dispatcher, copy engine, sorted run builder, trie index). - `StorageEmbeddedRocksDB`: RocksDB 11.0 removed the raw `DB *` overloads of `DB::Open` and `DB::OpenForReadOnly`; use the `std::unique_ptr<DB>` overloads instead. Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
Workflow [PR], commit [3862b27] Summary: ❌
AI ReviewSummaryThis PR bumps the vendored PR Metadata
Findings❌ Blockers
Missing context / blind spots
Final Verdict❌ Changes requested. The RocksDB LLVM Coverage ReportMeasured on commit 3862b27.
Changed lines: Changed C/C++ lines covered: 6/6 (100.00%) · Uncovered code |
The pin is the head of `ClickHouse/v11.8.1` in `ClickHouse/rocksdb` (v11.8.1 plus the crc32c TSan fix), so the URL should name the fork instead of relying on GitHub serving fork-network objects through `facebook/rocksdb`.
Build profile diff (arm_release)Comparing commit See the job log for details. |
|
📊 Cloud Performance Report ✅ AI verdict: This PR only bumps the rocksdb submodule (v10.10.1 to v11.8.1), adds the new upstream sources to the rocksdb CMake list, and switches StorageEmbeddedRocksDB to the unique_ptr DB::Open overloads. None of that touches the MergeTree query-execution path that ClickBench runs against the hits table. The two flagged regressions, Q4 (AVG(UserID), +16.7%) and Q5 (COUNT(DISTINCT UserID), +10.0%), never execute any rocksdb code, so both were downgraded to not_sure as run-to-run variance rather than a real PR effect. No cross-query pattern ties these two together beyond the shared conclusion that the changed code is off their execution path. clickbenchFlagged queries (2 of 43)
Change = percent below ×2; the ratio of medians (×N faster/slower) beyond, where percent understates the scale. q-value = BH-FDR adjusted p; smaller is stronger evidence. MIRAI flags a query when q < fdr_q (default 0.10) — the value the verdict is based on. tpch_adapted_1_official🟢 No significant changes Debug info
|
| @@ -1 +1 @@ | |||
| Subproject commit d250fae809fe6af931d12a857d07e6f2b96e1c11 | |||
| Subproject commit 7d4d9327af02f4d3ac0a028817d11e4a8a0cce90 | |||
There was a problem hiding this comment.
EmbeddedRocksDB explicitly supports reopening an existing external rocksdb_dir, but this bump silently narrows that contract. RocksDB 11.0.0 dropped support for SSTs whose BlockBasedTableOptions.format_version is < 2; after this pin, both DB::Open paths here will start failing on such directories unless the user first runs a full compaction on a pre-11 build.
That is a real backward-incompatible open-time exception for legitimate existing setups, especially because we also forward arbitrary rocksdb.block_based_table_options from config. The PR needs an explicit compatibility story before merge: at minimum a changelog / release note that calls out the migration requirement, and ideally a clearer ClickHouse-side diagnostic for this case instead of surfacing a generic ROCKSDB_ERROR.
|
🕵️
|
f3346ee
Bumps
rocksdbfrom 10.10.1 to 11.8.1, a major upstream release that removes the deprecated rawDB*open overloads and adds several new blob and index subsystems.ClickHouse-side changes
contrib/rocksdb-cmake/CMakeLists.txt— added the 13 new upstream library sources (blob partition manager, blob gen2 format and write-batch transformer, read-path blob resolver, multi-scan index iterator, trie index, copy engine, sorted run builder, io dispatcher, coro stats,db/version_util.cc).src/Storages/RocksDB/StorageEmbeddedRocksDB.cpp— switched to thestd::unique_ptr<rocksdb::DB>*overloads ofDB::Open/DB::OpenForReadOnly, since the rawDB*overloads were removed in 11.0.Fork
Pinned to
ClickHouse/rocksdbbranchClickHouse/v11.8.1, which is upstream v11.8.1 plus the one carried ClickHouse patch —pmull_runtime_flagmadestd::atomic<bool>inutil/crc32c.ccto fix a TSan data race when several RocksDB instances open concurrently — rebased in ClickHouse/rocksdb#35.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Update
rocksdbto v11.8.1.Workflow [PR]
Sync PR [sync-upstream/pr/118929]
Version info
26.10.1.347-master(included in26.10and later)