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

Jason Brown commented on CASSANDRA-14114:
-----------------------------------------

Interesting. My linux laptop, by default, causes the test to succeed (by not 
binding to the socket). However, after I enable {{net.ipv4.ip_nonlocal_bind}}, 
I can reproduce the failure.

As you've probably figured out, this test is trying to force the code into 
[this branch within the exception 
handling|https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/net/async/NettyFactory.java#L226].
 I suppose it's not an essential test and could be removed, or we could check 
if OS=linux and net.ipv4.ip_nonlocal_bind=1 if the socket does bind. wdyt?

> uTest failed: NettyFactoryTest.createServerChannel_UnbindableAddress()
> ----------------------------------------------------------------------
>
>                 Key: CASSANDRA-14114
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-14114
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Jay Zhuang
>            Priority: Minor
>              Labels: Testing
>
> {noformat}
>     [junit] Testcase: 
> createServerChannel_UnbindableAddress(org.apache.cassandra.net.async.NettyFactoryTest):
>    FAILED
>     [junit] Expected exception: 
> org.apache.cassandra.exceptions.ConfigurationException
>     [junit] junit.framework.AssertionFailedError: Expected exception: 
> org.apache.cassandra.exceptions.ConfigurationException
>     [junit]
>     [junit]
>     [junit] Test org.apache.cassandra.net.async.NettyFactoryTest FAILED
> {noformat}
> I'm unable to reproduce the problem on a mac or circleCI, but on some hosts 
> (Linux 4.4.38), it's able to bind IP {{1.1.1.1}}, or any other valid IP 
> (which breaks the testcase):
> {noformat}
> ...
>     [junit] INFO  [main] 2017-12-13 21:20:48,470 NettyFactory.java:190 - 
> Starting Messaging Service on /1.1.1.1:9876 , encryption: disabled
> ...
> {noformat}
> Is it because a network/kernal configuration?
> +[~jasobrown]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to