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

Robert Stupp commented on CASSANDRA-15901:
------------------------------------------

Hm - maybe it's easier to change 
{{org.apache.cassandra.utils.FBUtilities#getJustLocalAddress}} and add a 
try-catch(UnknownHostException) around the {{InetAddress.getLocalHost()}} 
(_"Returns the address of the local host. This is achieved by retrieving the 
name of the host from the system, then resolving that name into an 
{{InetAddress}}."_) and use {{InetAddress.getLoopbackAddress()}} when that's 
thrown (to avoid a change of the current behavior). Guess, this affects all 
branches (and all other uses of {{InetAddress.getLocalHost()}}).

> Fix unit tests to load test/conf/cassandra.yaml (so to listen on a valid ip)
> ----------------------------------------------------------------------------
>
>                 Key: CASSANDRA-15901
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-15901
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Test/dtest
>            Reporter: Berenguer Blasi
>            Assignee: Berenguer Blasi
>            Priority: Normal
>             Fix For: 4.0-rc
>
>
> Many of the ci-cassandra jenkins runs fail on {{ip-10-0-5-5: Name or service 
> not known}}. CASSANDRA-15622 addressed some of these but many still remain. 
> Currently test C* nodes are either failing or listening on a public ip 
> depending on which agent they end up.
> The idea behind this ticket is to make ant force the private VPC ip in the 
> cassandra yaml when building, this will force the nodes to listen on the 
> correct ip.



--
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