Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8338759

Add extra diagnostic to java/net/InetAddress/ptr/Lookup.java

XMLWordPrintable

    • b17
    • x86_64
    • linux_oracle

        An intermittent failure has been observed in SBR JDK23 b36 run where the test java/net/InetAddress/ptr/Lookup.java fails with
        java.lang.RuntimeException: Mismatch between default and java.net.preferIPv4Stack=true results


        This is due to the java.net.preferIPv4Stack IP reverse lookup doesn't match that of the dual stack IP reverse lookup.

        A possible cause of this is that there is network infra glitch during the dual stack IP reverse lookup, such that the DNS is not available and the hostname of the created InetAddress is populated with the IP address.

        The test provides very good diagnostics, but doesn't provide details of the dual stack IP reverse lookup, which is an essential aspect of the test.

        Add a diagnostic to output the InetAddress details retrieved for the dual stack lookup

              ssachkov Serhiy Sachkov
              msheppar Mark Sheppard
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: