You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Yuqi Gu (Jira)" <ji...@apache.org> on 2021/10/20 07:55:00 UTC
[jira] [Comment Edited] (CASSANDRA-17040) Upgrade Snappy version to
support Apple M1
[ https://issues.apache.org/jira/browse/CASSANDRA-17040?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17431034#comment-17431034 ]
Yuqi Gu edited comment on CASSANDRA-17040 at 10/20/21, 7:54 AM:
----------------------------------------------------------------
[~djoshi]
The build environment:
{code:java}
Hardware Overview:
Model Name: Mac mini
Model Identifier: Macmini9,1
Chip: Apple M1
Total Number of Cores: 8 (4 performance and 4 efficiency)
Memory: 16 GB
System Firmware Version: 6723.81.1
{code}
JDK 11(/opt/homebrew/opt/openjdk@11):
{code:java}
openjdk 11.0.12 2021-07-20
OpenJDK Runtime Environment Homebrew (build 11.0.12+0)
OpenJDK 64-Bit Server VM Homebrew (build 11.0.12+0, mixed mode)
{code}
Build and Unit tests:
{code:java}
ant -Duse.jdk11=true
ant test -Duse.jdk11=true
{code}
was (Author: yqgu):
[~djoshi]
The build environment:
{code:java}
Hardware Overview:
Model Name: Mac mini
Model Identifier: Macmini9,1
Chip: Apple M1
Total Number of Cores: 8 (4 performance and 4 efficiency)
Memory: 16 GB
System Firmware Version: 6723.81.1
{code}
JDK 11: /opt/homebrew/opt/openjdk@11
{code:java}
openjdk 11.0.12 2021-07-20
OpenJDK Runtime Environment Homebrew (build 11.0.12+0)
OpenJDK 64-Bit Server VM Homebrew (build 11.0.12+0, mixed mode)
{code}
Build and Unit tests:
{code:java}
ant -Duse.jdk11=true
ant test -Duse.jdk11=true
{code}
> Upgrade Snappy version to support Apple M1
> ------------------------------------------
>
> Key: CASSANDRA-17040
> URL: https://issues.apache.org/jira/browse/CASSANDRA-17040
> Project: Cassandra
> Issue Type: Improvement
> Components: Feature/Compression
> Reporter: Yuqi Gu
> Assignee: Yuqi Gu
> Priority: Normal
> Fix For: 4.1
>
> Attachments: UTs.txt, UTs_2.txt
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Some Unit test cases were failed in Apple M1:
>
> {code:java}
> [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
> ....
> ...
> ..
>
> {code}
>
> 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.
>
>
>
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org