Uploaded image for project: 'Apache Cassandra'
  1. Apache Cassandra
  2. CASSANDRA-9548

SnappyCompressor only works with direct buffers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Not A Problem
    • 2.2.0 rc1
    • None
    • None
    • Normal

    Description

      The SnappyCompressor is reporting the following errors:

          org.xerial.snappy.SnappyError: [NOT_A_DIRECT_BUFFER] input is not a direct buffer
              at org.xerial.snappy.Snappy.compress(Snappy.java:143)
              at org.apache.cassandra.io.compress.SnappyCompressor.compress(SnappyCompressor.java:85)
      

      This is because in 2.2 the SnappyCompressor is now calling

      Snappy.compress
      

      instead of (as previously)

      Snappy.rawCompress
      

      Snappy.compress checks that the input and output buffers are direct and throws the above error.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mike_tr_adamson Mike Adamson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: