You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Dinesh Joshi (JIRA)" <ji...@apache.org> on 2018/06/15 17:32:00 UTC

[jira] [Comment Edited] (CASSANDRA-14114) uTest failed: NettyFactoryTest.createServerChannel_UnbindableAddress()

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

Dinesh Joshi edited comment on CASSANDRA-14114 at 6/15/18 5:31 PM:
-------------------------------------------------------------------

I think we should skip the test if we detect that {{ip_nonlocal_bind}} is set and output a warning. The interesting question is whether we should detect this setting on a Linux host and log a warning when the operator specifies a non-local IP but we still proceed to bind to it because the OS has this flag set. In this case we have Cassandra listening on a IP that does not exist on the host.

[~jasobrown] [~jay.zhuang] WDYT?


was (Author: djoshi3):
[~jasobrown] I think we should skip the test if we detect that {{ip_nonlocal_bind}} is set and output a warning. The interesting question is whether we should detect this setting on a Linux host and log a warning when the operator specifies a non-local IP but we still proceed to bind to it because the OS has this flag set. In this case we have Cassandra listening on a IP that does not exist on the host.

> 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: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org