[ https://issues.apache.org/jira/browse/CASSANDRA-13831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16152731#comment-16152731 ]
Aleksey Yeschenko commented on CASSANDRA-13831: ----------------------------------------------- This makes the tests pass but still shits all over the logs. {code} [junit] WARN [main] 2017-09-04 16:33:51,193 NettyFactory.java:98 - epoll not availble {} [junit] java.lang.ExceptionInInitializerError: null [junit] at io.netty.channel.epoll.Epoll.<clinit>(Epoll.java:33) ~[netty-all-4.1.14.Final.jar:4.1.14.Final] [junit] at org.apache.cassandra.service.NativeTransportService.useEpoll(NativeTransportService.java:162) ~[main/:na] [junit] at org.apache.cassandra.net.async.NettyFactoryTest.<clinit>(NettyFactoryTest.java:65) ~[classes/:na] [junit] at java.lang.Class.forName0(Native Method) ~[na:1.8.0_144] [junit] at java.lang.Class.forName(Class.java:264) ~[na:1.8.0_144] [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:380) ~[ant-junit.jar:na] [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1182) ~[ant-junit.jar:na] [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:1033) ~[ant-junit.jar:na] [junit] Caused by: java.lang.IllegalStateException: Only supported on Linux [junit] at io.netty.channel.epoll.Native.loadNativeLibrary(Native.java:189) ~[netty-all-4.1.14.Final.jar:4.1.14.Final] [junit] at io.netty.channel.epoll.Native.<clinit>(Native.java:61) ~[netty-all-4.1.14.Final.jar:4.1.14.Final] [junit] ... 8 common frames omitted {code} Could you maybe modify {{NativeTransportService.useEpoll()}} to look at the OS first before trying to call {{Epoll.isAvailable()}}, or fix it some other way? > NettyFactoryTest is failing in trunk on MacOS > --------------------------------------------- > > Key: CASSANDRA-13831 > URL: https://issues.apache.org/jira/browse/CASSANDRA-13831 > Project: Cassandra > Issue Type: Bug > Components: Testing > Reporter: Aleksey Yeschenko > Assignee: Jason Brown > Priority: Minor > Fix For: 4.x > > > Example failure: > {code} > [junit] Testcase: > getEventLoopGroup_EpollWithoutIoRatioBoost(org.apache.cassandra.net.async.NettyFactoryTest): > Caused an ERROR > [junit] failed to load the required native library > [junit] java.lang.UnsatisfiedLinkError: failed to load the required > native library > [junit] at > io.netty.channel.epoll.Epoll.ensureAvailability(Epoll.java:78) > [junit] at > io.netty.channel.epoll.EpollEventLoop.<clinit>(EpollEventLoop.java:53) > [junit] at > io.netty.channel.epoll.EpollEventLoopGroup.newChild(EpollEventLoopGroup.java:134) > [junit] at > io.netty.channel.epoll.EpollEventLoopGroup.newChild(EpollEventLoopGroup.java:35) > [junit] at > io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:84) > [junit] at > io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:58) > [junit] at > io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:47) > [junit] at > io.netty.channel.MultithreadEventLoopGroup.<init>(MultithreadEventLoopGroup.java:59) > [junit] at > io.netty.channel.epoll.EpollEventLoopGroup.<init>(EpollEventLoopGroup.java:104) > [junit] at > io.netty.channel.epoll.EpollEventLoopGroup.<init>(EpollEventLoopGroup.java:91) > [junit] at > io.netty.channel.epoll.EpollEventLoopGroup.<init>(EpollEventLoopGroup.java:68) > [junit] at > org.apache.cassandra.net.async.NettyFactory.getEventLoopGroup(NettyFactory.java:175) > [junit] at > org.apache.cassandra.net.async.NettyFactoryTest.getEventLoopGroup_Epoll(NettyFactoryTest.java:187) > [junit] at > org.apache.cassandra.net.async.NettyFactoryTest.getEventLoopGroup_EpollWithoutIoRatioBoost(NettyFactoryTest.java:205) > [junit] Caused by: java.lang.ExceptionInInitializerError > [junit] at io.netty.channel.epoll.Epoll.<clinit>(Epoll.java:33) > [junit] at > org.apache.cassandra.service.NativeTransportService.useEpoll(NativeTransportService.java:162) > [junit] at > org.apache.cassandra.net.async.NettyFactory.<clinit>(NettyFactory.java:94) > [junit] at > org.apache.cassandra.net.async.NettyFactoryTest.getEventLoopGroup_Nio(NettyFactoryTest.java:216) > [junit] at > org.apache.cassandra.net.async.NettyFactoryTest.getEventLoopGroup_NioWithoutIoRatioBoost(NettyFactoryTest.java:211) > [junit] Caused by: java.lang.IllegalStateException: Only supported on > Linux > [junit] at > io.netty.channel.epoll.Native.loadNativeLibrary(Native.java:189) > [junit] at io.netty.channel.epoll.Native.<clinit>(Native.java:61) > {code} > It's obviously caused by epoll being unavailable on MacOS, but the tests > should still be made to pass. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org