Repository navigation
Bump mariadb-connector-c to v3.4.10 - #119510
Conversation
Points the submodule at the ClickHouse fork branch `ClickHouse/v3.4.10` (`eebaeaaa8255`), which carries the remaining ClickHouse patch series rebased onto upstream `v3.4.10`. Three of the seven patches that were on the old pin are gone because upstream merged equivalent fixes into `v3.4.10`: * `pvio_socket_wait_io_or_timeout` now re-polls with the remaining time budget on `EINTR` and reports `ETIMEDOUT` when it is exhausted, so `MYSQL_OPT_CONNECT_TIMEOUT` is honoured under periodic signals. * The TLS handshake loop in `libmariadb/secure/openssl.c` waits with `pvio->timeout[PVIO_CONNECT_TIMEOUT]` instead of a hardcoded 5 ms and passes `is_read` correctly for the write direction. The four remaining patches (atomic `max_allowed_packet` / `net_buffer_length`, the `_Atomic` shim for `g++`, dropping the `getservbyname`/`MYSQL_TCP_PORT` lookup, and removing the `docs` submodule) are unchanged in content. Upstream `v3.4.10` adds no new source files under `libmariadb/` or `plugins/` (only a replication fuzzer under `tools/`, which ClickHouse does not build), so the source lists in `contrib/mariadb-connector-c-cmake/CMakeLists.txt` need no changes; only `CPACK_PACKAGE_VERSION_PATCH` is bumped to match upstream. Co-Authored-By: Claude Opus 5 <[email protected]>
|
Workflow [PR], commit [0114269] Summary: ✅
AI ReviewSummaryThis PR updates the bundled Final VerdictStatus: ✅ Approve |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Compile time of recompiled translation units49 translation units recompiled, 16 s compile time in total, 49 of them have a recent master baseline. |
…tor-c-v3.4.10 # Conflicts: # contrib/mariadb-connector-c
Points the submodule at the ClickHouse fork branch `ClickHouse/v3.4.10` (`b3c09ab333c2`), which carries the ClickHouse patch series rebased onto upstream `v3.4.10`. The four long-standing patches are unchanged in content: atomic `max_allowed_packet` / `net_buffer_length` with the `_Atomic` shim for `g++`, dropping the `getservbyname`/`MYSQL_TCP_PORT` lookup in `mysql_once_init`, removing the `services` database dependency, and removing the `docs` submodule. A new patch clears the OpenSSL error queue before every SSL call that `SSL_get_error` reads, so a leftover `ERR_LIB_SYS` entry no longer turns a signal-interrupted TLS read into a spurious `SSL_ERROR_SYSCALL`/`CR_SERVER_LOST`. Upstream `v3.4.10` is mostly a security release: it fixes out-of-bounds reads in `unpack_fields` (CONC-847), `init_read_hdr` (CONC-842), and `mthd_my_read_rows` (CONC-843), a TLS verification bypass during auth-switch (CONC-846), a PBKDF2 CPU-stall in the `parsec` plugin (CONC-838), and clamps server-provided field lengths and the default `MAX_RESULT_COLUMNS` (CONC-820). The `pvio_socket` and OpenSSL TLS paths were rewritten, which is why the three earlier ClickHouse timeout/TLS patches are dropped as upstreamed. No new source files were added under `libmariadb/` or `plugins/` (only a replication fuzzer under `tools/`, which ClickHouse does not build), so the source lists in `contrib/mariadb-connector-c-cmake/CMakeLists.txt` need no changes; `CPACK_PACKAGE_VERSION_PATCH` is already bumped to 10. Co-Authored-By: Claude Code <[email protected]>
mariadb-connector-c from v3.4.9 to v3.4.10mariadb-connector-c to v3.4.10
`mariadb-connector-c` v3.4.10 no longer skips peer certificate verification when a CA certificate is configured, so the server hostname is now checked against the certificate. The test server certificate had only `CN=server`, which made `test_storage_mysql` SSL tests fail with `TLS/SSL error: Hostname verification failed`. Re-sign the server certificate with the existing CA and server key, adding a `subjectAltName` with the MySQL service hostnames used by the integration tests. https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=119510&sha=f5ed97fed2c10fc817b10e70a291a874feb73450&name_0=PR&name_1=Integration%20tests%20%28amd_asan_ubsan%2C%20db%20disk%2C%20targeted%29 ClickHouse#119510 Co-Authored-By: Claude Fable 5.1 <[email protected]>
Cherry pick #119510 to 26.3: Bump `mariadb-connector-c` to v3.4.10
Cherry pick #119510 to 26.7: Bump `mariadb-connector-c` to v3.4.10
Cherry pick #119510 to 26.8: Bump `mariadb-connector-c` to v3.4.10
Cherry pick #119510 to 26.9: Bump `mariadb-connector-c` to v3.4.10
Backport #119510 to 26.9: Bump `mariadb-connector-c` to v3.4.10
Backport #119510 to 26.8: Bump `mariadb-connector-c` to v3.4.10
Backport #119510 to 26.3: Bump `mariadb-connector-c` to v3.4.10
|
@actueleai @thevar1able — this PR looks backward incompatible but is categorized as Why: MySQL connections with
Suggested category: |
Backport #119510 to 26.7: Bump `mariadb-connector-c` to v3.4.10
|
This is a sane behavior, probably needs only a changelog update. |
…ble change After ClickHouse#119510, MySQL connections that set `ssl_ca` or `ssl_ca_pem` verify the server certificate chain and host name, which breaks setups that connect by an IP or a name missing from the certificate. Move its entry to "Backward Incompatible Change" in `CHANGELOG.md` and in the changelogs of the patch releases it was backported to. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Bump
mariadb-connector-cto v3.4.10, a security release fixing out-of-bounds reads in field, handshake and row parsing, a TLS verification bypass during auth-switch, and a PBKDF2 CPU-stall in theparsecauth plugin.ClickHouse-side changes
contrib/mariadb-connector-c-cmake/CMakeLists.txt—CPACK_PACKAGE_VERSION_PATCHbumped 9 to 10; feeds the generatedmariadb_version.h.Fork
ClickHouse/v3.4.10carries 5 ClickHouse patches (incl. the new OpenSSL error-queue clearing); the three earlier timeout/TLS patches were absorbed by the rewrittenpvio_socket.candopenssl.cand dropped.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Update
mariadb-connector-cto v3.4.10.Workflow [PR]
Sync PR [sync-upstream/pr/119510]
Version info
26.10.1.2325-master(included in26.10and later)26.9.19.11,26.8.27.11,26.7.32.8,26.3.52.4