[ https://issues.apache.org/jira/browse/CASSANDRA-15622?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Semb Wever updated CASSANDRA-15622: ------------------------------------------- Fix Version/s: (was: 3.11.x) (was: 4.x) (was: 3.0.x) (was: 2.2.x) 4.0-alpha 3.11.7 3.0.21 2.2.17 Since Version: 0.3 Source Control Link: https://github.com/apache/cassandra/commit/a8ef9c9ad1495f3eb9dc1ef09c0995926561fd8c Resolution: Fixed Status: Resolved (was: Ready to Commit) Committed as a8ef9c9ad1495f3eb9dc1ef09c0995926561fd8c > 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.17, 3.0.21, 3.11.7, 4.0-alpha > > > 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 can it not be 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). (Which 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: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org