Skip to content

Bump mongo-cxx-driver from r4.6.0 to r4.6.2 - #130444

Merged
thevar1able merged 1 commit into
ClickHouse:masterfrom
actueleai:bump-mongo-cxx-driver-r4.6.2
Nov 10, 2026
Merged

thevar1able merged 1 commit into
ClickHouse:masterfrom
actueleai:bump-mongo-cxx-driver-r4.6.2

Conversation

@actueleai

@actueleai actueleai commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Bumps mongo-cxx-driver from r4.6.0 to r4.6.2, which needs the mongo-c-driver 2.5.8 already on master.

Fork

Changelog category (leave one):

  • Build/Testing/Packaging Improvement

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Update mongo-cxx-driver from r4.6.0 to r4.6.2.


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

Version info

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

Moves the pin to the ClickHouse fork head `ClickHouse/r4.6.2`
(35424a5cc597), which is upstream r4.6.2 plus the single libc++ oidc include
fix (src/mongocxx/lib/mongocxx/v1/oidc_callback.hh, +3 lines). The fork URL in
`.gitmodules` is unchanged.

Notable upstream changes:
- r4.6.1 rejects embedded NUL characters in `distinct` field names
  (CVE-2026-106430). ClickHouse never calls `distinct`, so the path is
  unreachable from ClickHouse, and the fix is included regardless.
- r4.6.2 fixes unconditionally dangling references returned by the
  `get_<type>` accessors of `bsoncxx::v_noabi::types::bson_value::value`
  (return type changed from `T const&` to `T`), and stops converting empty
  string-like BSON type values into null strings in the `v_noabi` API.
- Minimum mongo-c-driver raised from 2.5.3 to 2.5.8. The current pin
  (2.5.8-6-g58b4e1f39) already satisfies it, so no co-bump is needed.

ClickHouse reads BSON through `bson_value::view`, whose accessors are
unchanged, so no source changes were required. No source files were added or
removed between the two tags, so `BSONCXX_SOURCES` and `MONGOCXX_SOURCES` in
`contrib/mongo-cxx-driver-cmake/CMakeLists.txt` are unchanged.

Verified by building `_bsoncxx`, `_mongocxx` and `clickhouse` in
`build/Release-master` (all four consumer TUs recompiled).

Co-Authored-By: Claude Code <[email protected]>
@thevar1able thevar1able added can be tested Allows running workflows for external contributors pr-must-backport Pull request should be backported intentionally. Use this label with great care! labels Nov 10, 2026
@thevar1able thevar1able self-assigned this Nov 10, 2026
@clickhouse-gh clickhouse-gh Bot added the manual approve Manual approve required to run CI label Nov 10, 2026
@clickhouse-gh

clickhouse-gh Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [1e18e9a]

Summary: ✅


AI Review

Summary

PR #130444, head 1e18e9a6d310dd975ddc1eb73f8de10fc0b2d0c9, updates mongo-cxx-driver from r4.6.0 to r4.6.2. No actionable findings. The exact dependency diff preserves the ClickHouse OIDC patch, matches the existing CMake source lists, and requires the mongo-c-driver version already pinned in this checkout. There are no prior review threads or findings to carry forward.

Consumers checked for the BSON accessor and empty-string representation changes: StorageMongoDB and BSONCXXHelper::fieldAsBSONValue retain owning filter values until builders copy them; MongoDBSource and the BSON decoding helpers consume normalized v_noabi views; MongoDBDictionarySource uses those same builders and decoding paths; BuzzHouse uses document builders and owning documents. No incompatible consumer assumptions were found. Upstream adds focused coverage for accessors, empty strings, value copies, and builder round trips.

Missing context / blind spots
  • ⚠️ Runtime validation remains incomplete: this checkout has no initialized dependency submodules or build directory, so no local build or tests were run. At review time, the Praktika report had no completed MongoDB integration results. Completed MongoDB storage and dictionary tests would close this gap.
Final Verdict

Status: ✅ Approve. No code changes or inline review comments requested.

@clickhouse-gh clickhouse-gh Bot added pr-build Pull request with build/testing/packaging improvement submodule changed At least one submodule changed in this PR. comp-external-dependencies Third-party deps updates in contrib/, vendored code, and platform base libraries. labels Nov 10, 2026
@clickhouse-gh

clickhouse-gh Bot commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Build profile diff (arm_release)

Comparing 1e18e9a6d with master 1dc326280 (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.

Slowest function optimization changes (ThinLTO)

Median per-function time ratio to the master baseline: programs/clickhouse ×0.90, programs/clickhouse-keeper ×1.10 (each binary is linked separately, on a different machine and with different build flags); deltas below are relative to it.

Binary Function Master PR Δ vs median
programs/clickhouse DB::registerFunctionConversion(DB::FunctionFactory&) 7.6 s 16.3 s +9.4 s (+138%)
Compile time of recompiled translation units

76 translation units recompiled, 120 s compile time in total, 76 of them have a recent master baseline.

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

Job report

@thevar1able
thevar1able added this pull request to the merge queue Nov 10, 2026
Merged via the queue into ClickHouse:master with commit 312c31c Nov 10, 2026
200 checks passed
@thevar1able
thevar1able deleted the bump-mongo-cxx-driver-r4.6.2 branch November 10, 2026 15:39
@robot-clickhouse robot-clickhouse added the pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR label Nov 10, 2026
@robot-ch-test-poll robot-ch-test-poll added the pr-synced-to-cloud The PR is synced to the cloud repo label Nov 10, 2026
@robot-clickhouse robot-clickhouse added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Nov 10, 2026
clickhouse-gh Bot added a commit that referenced this pull request Nov 10, 2026
Backport #130444 to 26.10: Bump `mongo-cxx-driver` from r4.6.0 to r4.6.2
clickhouse-gh Bot added a commit that referenced this pull request Nov 10, 2026
Backport #130444 to 26.9: Bump `mongo-cxx-driver` from r4.6.0 to r4.6.2
thevar1able added a commit that referenced this pull request Nov 10, 2026
Backport #130444 to 26.3: Bump `mongo-cxx-driver` from r4.6.0 to r4.6.2
clickhouse-gh Bot added a commit that referenced this pull request Nov 11, 2026
Backport #130444 to 26.8: Bump `mongo-cxx-driver` from r4.6.0 to r4.6.2
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-external-dependencies Third-party deps updates in contrib/, vendored code, and platform base libraries. manual approve Manual approve required to run CI pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-build Pull request with build/testing/packaging improvement pr-must-backport Pull request should be backported intentionally. Use this label with great care! pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR pr-synced-to-cloud The PR is synced to the cloud repo submodule changed At least one submodule changed in this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants