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

Add changelog entry for #3302 (compressed request buffer fix, #3303) - #3305

Merged
chernser merged 1 commit into
ClickHouse:mainfrom
LjungeldTheHelper:docs/3302-changelog
Nov 5, 2026
Merged

chernser merged 1 commit into
ClickHouse:mainfrom
LjungeldTheHelper:docs/3302-changelog

Conversation

@LjungeldTheHelper

@LjungeldTheHelper LjungeldTheHelper commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds the changelog entry for #3303 (community fix by @dizider for #3302) as history/latest/3302.md. #3303 itself has no changelog file, so this PR adds it separately. It changes no code.

Entry:

  • [client-v2] Fixed INSERT failing with LZ4Exception: maxDestLen is too small (LZ4) or ZstdException: Destination buffer is too small (ZSTD) when request compression is enabled (compressClientRequest(true)) and a 64 KiB block of the data does not compress, for example random bytes. The compressed output buffer was as large as the uncompressed block, but such a block grows when it is compressed. The buffer is now sized with the worst-case bound of the codec (LZ4Compressor.maxCompressedLength, Zstd.compressBound). The bug was introduced in 0.11.0. ([client-v2] Insert fails when request compression is enabled and data is incompressible #3302)

Related: #3302, #3303. The backport to v0.11.0 is a separate PR.

Checklist

  • A human-readable description of the changes was provided to include in CHANGELOG

🤖 Generated with Claude Code


Note

Low Risk
Documentation-only changelog addition with no runtime or build changes.

Overview
Adds history/latest/3302.md so the fix merged in #3303 is documented in the changelog; this PR does not change application code.

The entry records that client-v2 INSERT with compressClientRequest(true) could fail with LZ4/ZSTD “destination buffer too small” when a 64 KiB chunk does not compress (e.g. random data), because the output buffer matched the uncompressed block size instead of the codec’s worst-case bound. The documented fix uses LZ4Compressor.maxCompressedLength and Zstd.compressBound; the regression is noted from 0.11.0.

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

Add history/latest/3302.md for the compressed request buffer fix in ClickHouse#3303.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chernser
chernser merged commit 9f5e6d3 into ClickHouse:main Nov 5, 2026
3 checks passed
@chernser chernser mentioned this pull request Nov 7, 2026
4 tasks
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.

2 participants