Visitar URL original
Incorrect buffer positions in PureJavaSnappy causes IllegalArgumentException with hadoop-common's SnappyCodec · Issue #292 · xerial/snappy-java · GitHub
Skip to content

Incorrect buffer positions in PureJavaSnappy causes IllegalArgumentException with hadoop-common's SnappyCodec #292

Closed

Description

@viirya

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.

Activity

  1. runzexia commented on Oct 21, 2021

    @runzexia

    hi @viirya @xerial
    thanks for fix this, we seems having the same problem, can you help to release a snapshot version for us to try?(main branch github action failed )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions