Darrel Schneider created GEODE-10202:
----------------------------------------

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


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)

Reply via email to