[ 
https://issues.apache.org/jira/browse/CASSANDRA-21483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18092968#comment-18092968
 ] 

Stefan Miklosovic commented on CASSANDRA-21483:
-----------------------------------------------

I was testing this on Mac, I see:

{code}
$ lsof -p 50218 | grep -i zstd
java    50218 stefanm  txt       REG               1,14    646280            
82208992 
/private/var/folders/xw/t9jqyqh513v6jfx39spd479h0000gn/T/libzstd-jni-1.5.7-27646654230119756244.dylib
java    50218 stefanm  101r      REG               1,14    316734            
82208693 
/Users/stefanm/dev/cassandra/cassandra-instaclustr/cassandra-6.0/lib/zstd-jni-1.5.7-2-darwin_aarch64.jar
java    50218 stefanm  102r      REG               1,14    412401            
82208692 
/Users/stefanm/dev/cassandra/cassandra-instaclustr/cassandra-6.0/lib/zstd-jni-1.5.7-2-darwin_x86_64.jar
java    50218 stefanm  103r      REG               1,14    398064            
82163933 
/Users/stefanm/dev/cassandra/cassandra-instaclustr/cassandra-6.0/lib/zstd-jni-1.5.7-2-linux_aarch64.jar
java    50218 stefanm  104r      REG               1,14    469871            
82163932 
/Users/stefanm/dev/cassandra/cassandra-instaclustr/cassandra-6.0/lib/zstd-jni-1.5.7-2-linux_amd64.jar
{code}

So it loaded all and then it specifically loaded dylib because it is on Darwin 
- this happened when I created ZstdCompressor-backed table. 

> Use architecture-specific JARs for zstd-jni to get rid of unsupported 
> platforms
> -------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-21483
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-21483
>             Project: Apache Cassandra
>          Issue Type: Task
>          Components: Build
>            Reporter: Stefan Miklosovic
>            Assignee: Stefan Miklosovic
>            Priority: Normal
>             Fix For: 6.x, 7.x
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> zstd-jni we depend on is an architectonic uber-jar with all platforms 
> supported. This does not make a lot of sense in the context of Cassandra as 
> we support only arm / x86 / maybe Macs for development. 
> If we depended only on platform-specific JARs, we could get rid of few 
> megabytes when it comes to final release tarball, effectively going back to 
> the size of 5.x tarball for 6.0+
> We did something similar with Amazon Corretto Crypto Provider.
> https://github.com/luben/zstd-jni#binary-releases



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to