[
https://issues.apache.org/jira/browse/CASSANDRA-14114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16514237#comment-16514237
]
Jason Brown commented on CASSANDRA-14114:
-----------------------------------------
I think we should keep the test - it is still testing a valid deployment
problem that the code needs to protect for.
Further, I think [~djoshi3] is on the right track here. Where ever we bind to
sockets (in trunk, this is largely just {{Server}} for native protocol clients,
and {{NettyFactory}} for internode messaging), we should introduce a check
that, if we successfully bind, confirms if the box is bound with that address
else emit a warning.
{{createServerChannel_UnbindableAddress}} should be updated to be skipped or
ignored if (OS=linux && ip_nonlocal_bind == 1)
> 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
> Assignee: Dinesh Joshi
> 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]