Repository navigation
HBASE-30538 Bump snappy-java to 1.1.10.12 - #8870
Conversation
snappy-java 1.1.10.9 added an output-space check in Snappy.compress(ByteBuffer, ByteBuffer) based on remaining(), which rejects Hadoop SnappyCompressor (output limit(0) before compress) and breaks writes through Hadoop SnappyCodec. Fixed in 1.1.10.11 (apache#766); 1.1.10.12 also fixes apache#767. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
No open issues 🎉
What changed in this PR
Updates HBase’s snappy-java dependency to a newer upstream release that fixes a Hadoop SnappyCompressor interop regression in Snappy.compress(ByteBuffer, ByteBuffer) when the output buffer limit is set to 0.
Changes:
- Bump
snappy-javaversion from1.1.10.9to1.1.10.12in the Maven build properties.
| File | Description |
|---|---|
| pom.xml | Updates the snappy.version property to pull in the fixed snappy-java release. |
Review effort: Lite
Fails with snappy-java 1.1.10.9/1.1.10.10 ('not enough space for
output'), passes with 1.1.10.11+.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
Reproduced locally with the new
Failure on 1.1.10.9: This is the same path HFile block compression takes for SNAPPY column families with the default |
|
Thanks @nirdosh0110 for the fix and for adding TestHadoopSnappyCodec. |
|
@nirdosh0110 please raise backport PRs for branch-2.x. |
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Umesh Kumar Kumawat <ukumawat@apache.org>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Umesh Kumar Kumawat <ukumawat@apache.org>
https://issues.apache.org/jira/browse/HBASE-30538
snappy-java 1.1.10.9 (HBASE-30508) added an output-space check in
Snappy.compress(ByteBuffer, ByteBuffer)againstcompressed.remaining(). Hadoop'sSnappyCompressorsetscompressedDirectBuf.limit(0)before compressing, so writes through HadoopSnappyCodec(the default codec forCompression.Algorithm.SNAPPY) fail withnot enough space for output: need N bytes, but only 0 remaining.Fixed upstream in 1.1.10.11 (xerial/snappy-java#765, #766); 1.1.10.12 also fixes #767. Hadoop trunk and Spark are already on 1.1.10.12.
Adds
TestHadoopSnappyCodec(hbase-common), a round trip throughCompression.Algorithm.SNAPPYwith the default HadoopSnappyCodec. Verified locally: fails on 1.1.10.9 and 1.1.10.10 withnot enough space for output: need 254,857 bytes, but only 0 remaining, passes on 1.1.10.11 and 1.1.10.12.🤖 Generated with Claude Code