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

Yuqi Gu commented on CASSANDRA-17019:
-------------------------------------

After upgrading snappy to latest version, all unit tests are passed except one:
{code:java}
org.apache.cassandra.net.MessagingServiceTest
{code}


{code:java}
[junit-timeout] Testsuite: org.apache.cassandra.net.MessagingServiceTest
[junit-timeout] Testsuite: org.apache.cassandra.net.MessagingServiceTest Tests 
run: 14, Failures: 2, Errors: 4, Skipped: 0, Time elapsed: 1.502 sec
[junit-timeout]
[junit-timeout] Testcase: 
listenRequiredSecureConnectionWithBroadcastAddrAndLegacyPort(org.apache.cassandra.net.MessagingServiceTest):
  Caused an ERROR
[junit-timeout] failed to bind to: /127.0.0.2:17012
[junit-timeout] org.apache.cassandra.exceptions.ConfigurationException: failed 
to bind to: /127.0.0.2:17012
[junit-timeout]         at 
org.apache.cassandra.net.InboundConnectionInitiator.bind(InboundConnectionInitiator.java:189)
[junit-timeout]         at 
org.apache.cassandra.net.InboundConnectionInitiator.bind(InboundConnectionInitiator.java:199)
[junit-timeout]         at 
org.apache.cassandra.net.InboundSockets$InboundSocket.open(InboundSockets.java:100)
[junit-timeout]         at 
org.apache.cassandra.net.InboundSockets$InboundSocket.open(InboundSockets.java:87)
[junit-timeout]         at 
org.apache.cassandra.net.InboundSockets.open(InboundSockets.java:236)
[junit-timeout]         at 
org.apache.cassandra.net.MessagingServiceTest.listen(MessagingServiceTest.java:342)
[junit-timeout]         at 
org.apache.cassandra.net.MessagingServiceTest.listenRequiredSecureConnectionWithBroadcastAddrAndLegacyPort(MessagingServiceTest.java:307)
[junit-timeout]         at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[junit-timeout]         at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[junit-timeout]         at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[junit-timeout] Caused by: java.net.BindException: Can't assign requested 
address
[junit-timeout]         at java.base/sun.nio.ch.Net.bind0(Native Method)
[junit-timeout]         at java.base/sun.nio.ch.Net.bind(Net.java:455)
[junit-timeout]         at java.base/sun.nio.ch.Net.bind(Net.java:447)
[junit-timeout]         at 
java.base/sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:227)
[junit-timeout]         at 
io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:134)
[junit-timeout]         at 
io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:550)
[junit-timeout]         at 
io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1334)
[junit-timeout]         at 
io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:506)
[junit-timeout]         at 
io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:491)
[junit-timeout]         at 
io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:973)
[junit-timeout]         at 
io.netty.channel.AbstractChannel.bind(AbstractChannel.java:248)
[junit-timeout]         at 
io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:356)
[junit-timeout]         at 
io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
[junit-timeout]         at 
io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)
[junit-timeout]         at 
io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500)
[junit-timeout]         at 
io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
[junit-timeout]         at 
io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
[junit-timeout]         at 
io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
[junit-timeout]         at java.base/java.lang.Thread.run(Thread.java:829)
[junit-timeout]
[junit-timeout]
{code}


> JNA 5.6.0 does not support arm64
> --------------------------------
>
>                 Key: CASSANDRA-17019
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-17019
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Dependencies
>            Reporter: Igamr Palsenberg
>            Assignee: Stefan Miklosovic
>            Priority: Normal
>             Fix For: 4.1
>
>         Attachments: cassandra_UTs.txt
>
>
> Cassandra depends on net.java.dev.jna.jna version 5.6.0 to do the native 
> binding into the C library.
> JNA 5.6.0 does not support arm64 architecture (Apple M1 devices), causing 
> cassandra to fail on bootstrap.
>  Bumping the dependency to 5.9.0 adds arm64 support. Will a PR to bump the 
> dependency be acceptable ?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to