镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Patch v0.11.1 - #3306

Open
chernser wants to merge 2 commits into
v0.11.0from
patch_v0.11.1
Open

chernser wants to merge 2 commits into
v0.11.0from
patch_v0.11.1

Conversation

@chernser

@chernser chernser commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Backport PR #3303 and #3305

Checklist

Delete items not relevant to your PR:

  • Closes #
  • Unit and integration tests covering the common scenarios were added
  • A human-readable description of the changes was provided to include in CHANGELOG
  • For significant changes, documentation in https://github.com/ClickHouse/clickhouse-docs was updated with further explanations or tutorials

Note

Low Risk
Localized compression buffer sizing fix with no public API changes beyond correct behavior; slightly larger per-stream buffers is expected.

Overview
Fixes client-v2 INSERT failures when compressClientRequest(true) is on and a full 64 KiB block does not shrink under LZ4 or ZSTD (e.g. random data), which previously threw maxDestLen is too small / destination buffer too small because the compressed buffer matched the uncompressed block size.

The base CompressedBlockOutputStream now takes an explicit max compressed buffer size; LZ4 and ZSTD subclasses set it via LZ4Compressor.maxCompressedLength and Zstd.compressBound instead of assuming compressed output never exceeds the input block. New round-trip tests cover full-block compressible and incompressible payloads for both codecs, and CHANGELOG documents the 0.11.0 regression (#3302).

Reviewed by Cursor Bugbot for commit 822d6b5. Bugbot is set up for automated code reviews on this repo. Configure here.

dizider and others added 2 commits November 6, 2026 17:03
@chernser
chernser requested a review from mzitnik as a code owner November 7, 2026 01:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants