Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-31274

Fix AvroRuntimeException: Unrecognized codec: snappy on Macbook M1

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2023.0
    • Component/s: Streams
    • Release Notes Summary:
      Fix unrecognized codec used by Avro on ARM architecture
    • Epic Link:
    • Tags:
    • Team:
      PLATFORM
    • Sprint:
      nxplatform #70
    • Story Points:
      2

      Description

      When running the nuxeo-stream (TestLoadDump for instance) unit tests on a Macbook M1 we get the following exception:

      org.apache.avro.AvroRuntimeException: Unrecognized codec: snappy
      	at org.apache.avro.file.CodecFactory.fromString(CodecFactory.java:144)
      	at org.apache.avro.file.DataFileStream.resolveCodec(DataFileStream.java:145)
      	at org.apache.avro.file.DataFileStream.initialize(DataFileStream.java:131)
      	at org.apache.avro.file.DataFileReader.<init>(DataFileReader.java:106)
      	at org.apache.avro.file.DataFileReader.<init>(DataFileReader.java:93)
      	at org.nuxeo.lib.stream.tests.tools.TestLoadDump.testReadDump(TestLoadDump.java:78)
      

      This is due to an incompatibility of the org.xerial.snappy:snappy-java:1.1.7.3 artifact with Macbook M1. The version 1.1.8.2 brings support to this architecture.

      We should upgrade this dependency.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: