[
https://issues.apache.org/jira/browse/CASSANDRA-15622?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17051957#comment-17051957
] Michael Semb Wever edited comment on CASSANDRA-15622 at 3/5/20, 7:03 PM: ------------------------------------------------------------------------- Patches. ||branch||circleci||jenkins pipeline|| |[cassandra_2.2_15622|https://github.com/apache/cassandra/compare/cassandra-2.2...thelastpickle:mck/cassandra-2.2_15622]|[circleci|https://circleci.com/gh/thelastpickle/workflows/cassandra/tree/mck%2Fcassandra-2.2_15622]|[!https://builds.apache.org/job/Cassandra-devbranch/34/badge/icon!|https://builds.apache.org/blue/organizations/jenkins/Cassandra-devbranch/detail/Cassandra-devbranch/34]| |[cassandra_3.0_15622|https://github.com/apache/cassandra/compare/cassandra-3.0...thelastpickle:mck/cassandra-3.0_15622]|[circleci|https://circleci.com/gh/thelastpickle/workflows/cassandra/tree/mck%2Fcassandra-3.0_15622]|[!https://builds.apache.org/job/Cassandra-devbranch/33/badge/icon!|https://builds.apache.org/blue/organizations/jenkins/Cassandra-devbranch/detail/Cassandra-devbranch/33]| |[cassandra_3.11_15622|https://github.com/apache/cassandra/compare/cassandra-3.11...thelastpickle:mck/cassandra-3.11_15622]|[circleci|https://circleci.com/gh/thelastpickle/workflows/cassandra/tree/mck%2Fcassandra-3.11_15622]|[!https://builds.apache.org/job/Cassandra-devbranch/32/badge/icon!|https://builds.apache.org/blue/organizations/jenkins/Cassandra-devbranch/detail/Cassandra-devbranch/32]| |[trunk_15622|https://github.com/apache/cassandra/compare/trunk...thelastpickle:mck/trunk_15622]|[circleci|https://circleci.com/gh/thelastpickle/workflows/cassandra/tree/mck%2Ftrunk_15622]|[!https://builds.apache.org/job/Cassandra-devbranch/31/badge/icon!|https://builds.apache.org/blue/organizations/jenkins/Cassandra-devbranch/detail/Cassandra-devbranch/31]| was (Author: michaelsembwever): Patches. ||branch||circleci||jenkins pipeline|| |[cassandra_2.2_15622|https://github.com/apache/cassandra/compare/cassandra-2.2...thelastpickle:mck/cassandra-2.2_15622]|[circleci|https://circleci.com/gh/thelastpickle/workflows/cassandra/tree/mck%2Fcassandra-2.2_15622]|[!https://builds.apache.org/job/Cassandra-devbranch/22/badge/icon!|https://builds.apache.org/blue/organizations/jenkins/Cassandra-devbranch/detail/Cassandra-devbranch/22]| |[cassandra_3.0_15622|https://github.com/apache/cassandra/compare/cassandra-3.0...thelastpickle:mck/cassandra-3.0_15622]|[circleci|https://circleci.com/gh/thelastpickle/workflows/cassandra/tree/mck%2Fcassandra-3.0_15622]|[!https://builds.apache.org/job/Cassandra-devbranch/23/badge/icon!|https://builds.apache.org/blue/organizations/jenkins/Cassandra-devbranch/detail/Cassandra-devbranch/23]| |[cassandra_3.11_15622|https://github.com/apache/cassandra/compare/cassandra-3.11...thelastpickle:mck/cassandra-3.11_15622]|[circleci|https://circleci.com/gh/thelastpickle/workflows/cassandra/tree/mck%2Fcassandra-3.11_15622]|[!https://builds.apache.org/job/Cassandra-devbranch/27/badge/icon!|https://builds.apache.org/blue/organizations/jenkins/Cassandra-devbranch/detail/Cassandra-devbranch/27]| |[trunk_15622|https://github.com/apache/cassandra/compare/trunk...thelastpickle:mck/trunk_15622]|[circleci|https://circleci.com/gh/thelastpickle/workflows/cassandra/tree/mck%2Ftrunk_15622]|[!https://builds.apache.org/job/Cassandra-devbranch/28/badge/icon!|https://builds.apache.org/blue/organizations/jenkins/Cassandra-devbranch/detail/Cassandra-devbranch/28]| > Unit tests throw UnknownHostException trying to use > `InetAddress.getLocalHost()` instead of `FBUtilities.getLocalAddress()` > --------------------------------------------------------------------------------------------------------------------------- > > Key: CASSANDRA-15622 > URL: https://issues.apache.org/jira/browse/CASSANDRA-15622 > Project: Cassandra > Issue Type: Bug > Components: Test/unit > Reporter: Michael Semb Wever > Assignee: Michael Semb Wever > Priority: Normal > Fix For: 2.2.x, 3.0.x, 3.11.x, 4.x > > > Many of the unit tests in Jenkins fail because of the use of > {{`InetAddress.getLocalHost()`}} in the test classes. > The Jenkins agents need a public ipaddress (and a hostname associated to it) > so the Jenkins master can connect to them (agents can be hosted externally, > by donating third-parties). > The call to {{`InetAddress.getLocalHost()`}} can resolve to a hostname that > can't be looked up. > Not only it likely not listed in {{`/etc/hosts`}}, but we don't want it to be > either (in case of accidental external port opening if the hostname points to > the public ipaddress). (This is also ASF policy on this infrastructure.) > The unit test code needs to replace these code occurrences with the call to > {{`FBUtilities.getLocalAddress()`}} -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
