Repository navigation
Bump zxc from 0.14.0 to 1.0.0 - #131071
Conversation
Upstream release notes: https://github.com/hellobertrand/zxc/blob/v1.0.0/CHANGELOG Notable upstream changes: * Wire format v9 (upstream ClickHouse#452, introduced in 0.15.0) replaces v8. `zxc` accepts only its own format version, so data written by the previous pin (format v8) is rejected with `ZXC_ERROR_BAD_VERSION` (-5), and v9 data is rejected by 0.14.0 in turn. This is a backward-incompatible change for existing `ZXC`-compressed data - acceptable only because the `ZXC` codec is experimental and off by default behind `enable_zxc_codec`. * The option structs are gone (upstream ClickHouse#545, ClickHouse#546): `zxc_compress_opts_t` and `zxc_decompress_opts_t` are replaced by per-context parameters set one at a time. The one-shot `zxc_compress(src, n, dst, cap, level)` and `zxc_decompress(src, n, dst, cap)` forms default to no checksum (`ZXC_C_CHECKSUM` / `ZXC_D_CHECKSUM` are 0), which is what the codec asked for with `checksum_enabled = 0`, so `CompressionCodecZXC` keeps its behaviour and only drops the struct handling. Levels 1..7, `zxc_min_level`, `zxc_max_level`, `ZXC_PAD_SIZE` (32) and the destination slack the codec reserves through `getAdditionalSizeAtTheEndOfBuffer` are unchanged. * The per-ISA variant set is unchanged: `_default`, `_avx2`, `_avx512` and `_neon32`, with the same flag sets and the same `ZXC_FUNCTION_SUFFIX` mechanism, and `ZXC_DISABLE_SIMD` still forces the scalar core. Upstream's block types are renamed GLO/GHI to SPL/PAK (upstream ClickHouse#538), which is internal. `contrib/zxc-cmake/CMakeLists.txt` therefore needs no change. * `ZXC_DECOMPRESS_TAIL_PAD` drops from 2112 to 2084 bytes (upstream ClickHouse#564); it sizes zxc's internal work buffer, not the caller's destination, so the codec is unaffected. Verified locally on AArch64: `_zxc` and `clickhouse` build clean, a round-trip through `CODEC(ZXC(n))` for every level 1..7 plus the default level reproduces the input byte for byte, and both directions of the format break are confirmed (v8 data read by the new binary and v9 data read by the old one fail with `ZXC_ERROR_BAD_VERSION`). The x86-64 AVX2/AVX512 variants, the x86-64 core and the `ZXC_DISABLE_SIMD` scalar builds were cross-compiled against the sysroot to cover the configurations this host cannot build. Co-Authored-By: Claude Code <[email protected]>
|
Workflow [PR], commit [eb118b1] Summary: ✅
AI ReviewSummaryUpdates the experimental Missing context / blind spots
Final VerdictStatus: ✅ Approve. No unresolved review findings or new inline comments. |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Slowest function optimization changes (ThinLTO)Median per-function time ratio to the master baseline:
Compile time of recompiled translation units17 translation units recompiled, 8 s compile time in total, 17 of them have a recent master baseline. |
`zxc` 1.0.0 moved the MIT notice of the bundled `rapidhash` out of `LICENSE` into `THIRD_PARTY_NOTICES`, which `list-licenses.sh` did not pick up, so the notice would be lost from the license data embedded into the binary. Emit an additional row for a top-level `THIRD_PARTY_NOTICES` file of a library (this also covers `mongo-c-driver`). Address review: ClickHouse#131071 (comment) Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
🕵 @groeneai, investigate the failure: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=131071&sha=latest&name_0=PR&name_1=Docker%20server%20image and provide a fix in a separate PR. If the fix is already in progress, link it here. The |
|
This is the same hang as the one on #124125 (2026-10-28), and #128093 is the fix for it. In this run, #128093 bounds every It bounds the hang, it does not explain what wedges |
|
@groeneai, analyze if the on-disk format for zxc is stable. Audit the code of zxc for errors. If found, file issues to their repository. If not, send a PR promoting zxc from experimental to beta. |
|
Acknowledged. I'm analyzing the zxc 1.0.0 on-disk format stability and auditing the zxc code; I'll follow up here with the upstream issues (if I find defects) or a PR promoting the codec to beta. |
|
On-disk format. zxc 1.0.0 freezes wire format v9, which is unchanged from 0.15.0. The golden archives and conformance vectors are byte-identical to 0.15.0, and a CI job fails on any byte drift. The maintainer commits that later format changes are additive, so newer readers keep reading v9 (release notes, hellobertrand/zxc#457). One gap: Code audit. I found no defect in the
Upstream's own fuzzing does not reach the SIMD kernels (it builds with Since the code has no defect, I'll send a PR moving |
|
@alexey-milovidov Right, FORMAT.md and MIGRATION.md files need a fix in upstream. But the release notes state the intended guarantee: format v9 is frozen as of 1.0, and any later format version will be additive. Every future ZXC release will keep reading v9 archives, and more generally a decoder implementing version N will read every version from 9 to N. |
|
The PR moving |
zxc 1.0.0 (ClickHouse#131071) freezes the wire format at v9; the upstream author confirmed that later formats will be additive and that every future decoder reads v9, and an audit of the 1.0.0 code found no defect. Since ClickHouse#116337 a codec's maturity is the declared tier of its gate setting, so moving `enable_zxc_codec` from EXPERIMENTAL to BETA is the whole promotion: the gate error, `system.codecs.tier`, `system.settings.tier` and `allow_feature_tier` all follow from it. `allow_feature_tier` 1 and 2 now allow the setting; 3 still rejects it. The 26.8 history record stays as released; a 26.11 record documents the move, in the same shape as the other "moved to Beta" records. The rest of the diff is text naming the tier: the codec docs badge and note, the native protocol spec, the `01222_system_codecs` reference, the three assertions on the gate message in `test_experimental_codec_config_default` and two test comments. The default stays `false`. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Bumps
zxcfrom v0.14.0 to v1.0.0, the first stable release (format frozen), which replaces the option structs with per-context parameters and moves to wire format v9.ClickHouse-side changes
src/Compression/CompressionCodecZXC.cpp— dropped thezxc_compress_opts_t/zxc_decompress_opts_tblocks in favour of the one-shot calls, whose checksum default matches the previouschecksum_enabled = 0.utils/list-licenses/list-licenses.sh—zxc1.0.0 moved the MIT notice of the bundledrapidhashfromLICENSEtoTHIRD_PARTY_NOTICES; a top-levelTHIRD_PARTY_NOTICESfile of a contrib library is now listed insystem.licensesas an additional row, so the notice stays embedded in the binary.Behaviour changes
CODEC(ZXC)parts become unreadable after upgrade, and v9 parts are unreadable by older servers (CANNOT_DECOMPRESS, zxc error -5). ZXC is experimental (enable_zxc_codec); 0.13 → 0.14 broke the format the same way.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Update the experimental
ZXCcodec tozxc1.0.0 (format v9). Existing format-v8ZXCdata must be rewritten with another codec (or exported using the previous ClickHouse version) before upgrading. Older servers cannot read newly written format-v9 data; avoid mixed-version use ofZXCand rewrite new data before downgrading.Workflow [PR]
Sync PR [sync-upstream/pr/131071]
Version info
26.11.1.2215-master(included in26.11and later)