diff --git a/history/latest/3302.md b/history/latest/3302.md new file mode 100644 index 000000000..f73ebffd1 --- /dev/null +++ b/history/latest/3302.md @@ -0,0 +1,6 @@ +- **[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. (https://github.com/ClickHouse/clickhouse-java/issues/3302)