You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Darrel Schneider (Jira)" <ji...@apache.org> on 2022/03/30 22:35:00 UTC
[jira] [Resolved] (GEODE-10202) GMSJoinLeaveJUnitTest fails on java 17 because InetAddress.toString format has changed
[ https://issues.apache.org/jira/browse/GEODE-10202?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Darrel Schneider resolved GEODE-10202.
--------------------------------------
Resolution: Duplicate
> GMSJoinLeaveJUnitTest fails on java 17 because InetAddress.toString format has changed
> --------------------------------------------------------------------------------------
>
> Key: GEODE-10202
> URL: https://issues.apache.org/jira/browse/GEODE-10202
> Project: Geode
> Issue Type: Bug
> Components: tests
> Reporter: Darrel Schneider
> Assignee: Darrel Schneider
> Priority: Major
> Labels: Java17, pull-request-available
>
> The following failure is caused by java 17 adding "/<unresolved>". Looking at the jdk 8 source of InetSocketAddress.toString if it had a instance that was unresolved it just returned a String with hostName:port. Otherwise it was address:port. Jdk 17 now tacks on "/<unresolved>" to the hostName in this toString (see: https://github.com/openjdk/jdk17/blob/master/src/java.base/share/classes/java/net/InetSocketAddress.java)
> {noformat}
> GMSJoinLeaveJUnitTest > testJoinFailureWhenNoLocator FAILED
> java.lang.AssertionError:
> Expecting throwable message:
> "Unable to join the distributed system. Could not contact any of the locators: [locator1/<unresolved>:12345, locator2/<unresolved>:54321]"
> to contain:
> "Could not contact any of the locators: [locator1:12345, locator2:54321]"
> but did not.
> Throwable that failed the check: org.apache.geode.distributed.internal.membership.api.MembershipConfigurationException: Unable to join the distributed system. Could not contact any of the locators: [locator1/<unresolved>:12345, locator2/<unresolved>:54321]
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)