Incorrect buffer positions in PureJavaSnappy causes IllegalArgumentException with hadoop-common's SnappyCodec
viirya opened this issue · 1 comments
viirya commented
I'm debugging SnappyCodec related issues in hadoop-common which begins to use snappy-java since Hadoop 3.3.1. The exception I saw is:
java.lang.IllegalArgumentException
at java.nio.Buffer.limit(Buffer.java:275)
at org.xerial.snappy.Snappy.uncompress(Snappy.java:553)
at org.apache.hadoop.io.compress.snappy.SnappyDecompressor.decompressDirectBuf(SnappyDecompressor.java:268)
at org.apache.hadoop.io.compress.snappy.SnappyDecompressor.decompress(SnappyDecompressor.java:217)
This is caused by incorrect positions in PureJavaSnappy
.