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

Upgrade Snappy version to support Apple M1

    XMLWordPrintableJSON

Details

    Description

      Some Unit test cases were failed in Apple M1:

       

      [junit-timeout] Testcase: testTableOptions(org.apache.cassandra.cql3.validation.miscellaneous.OverflowTest): Caused an ERROR
      [junit-timeout] SnappyCompressor.create() threw an error: java.lang.NoClassDefFoundError Could not initialize class org.xerial.snappy.Snappy
      [junit-timeout] org.apache.cassandra.exceptions.ConfigurationException: SnappyCompressor.create() threw an error: java.lang.NoClassDefFoundError Could not initialize class org.xerial.snappy.Snappy
      [junit-timeout] at org.apache.cassandra.schema.CompressionParams.createCompressor(CompressionParams.java:344)
      [junit-timeout] at org.apache.cassandra.schema.CompressionParams.<init>(CompressionParams.java:211)
      [junit-timeout] at org.apache.cassandra.schema.CompressionParams.fromMap(CompressionParams.java:124)
      [junit-timeout] at org.apache.cassandra.cql3.statements.schema.TableAttributes.build(TableAttributes.java:110)
      [junit-timeout] at org.apache.cassandra.cql3.statements.schema.TableAttributes.validate(TableAttributes.java:58)
      [junit-timeout] at
      ....
      ...
      ..
       
      

       

      Snappy-java added M1 support since 1.1.8.2.(https://github.com/xerial/snappy-java/pull/268).

      So  let's upgrade snappy-java dependency to the latest release 1.1.8.4.

       

       

       

       

       

      Attachments

        1. UTs_2.txt
          454 kB
          Yuqi Gu
        2. UTs.txt
          457 kB
          Yuqi Gu

        Issue Links

          Activity

            People

              yqGu Yuqi Gu
              yqGu Yuqi Gu
              Yuqi Gu
              Dinesh Joshi
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m