Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-17177 Java 17 support
  3. HADOOP-17331

[JDK 15] TestDNS fails by UncheckedIOException

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.4.0
    • 3.4.0
    • test
    • Reviewed

    Description

      After JDK-8235783, DatagramSocket::connect throws UncheckedIOException if connect fails.

      [INFO] Running org.apache.hadoop.net.TestDNS
      [ERROR] Tests run: 12, Failures: 0, Errors: 5, Skipped: 0, Time elapsed: 0.403 s <<< FAILURE! - in org.apache.hadoop.net.TestDNS
      [ERROR] testNullDnsServer(org.apache.hadoop.net.TestDNS)  Time elapsed: 0.134 s  <<< ERROR!
      java.io.UncheckedIOException: java.net.SocketException: Unsupported address type
      	at java.base/sun.nio.ch.DatagramSocketAdaptor.connect(DatagramSocketAdaptor.java:120)
      	at java.base/java.net.DatagramSocket.connect(DatagramSocket.java:341)
      

      Full error log: https://gist.github.com/aajisaka/2a24cb2b110cc3d19f7dec6256db6844

      Attachments

        Issue Links

          Activity

            People

              aajisaka Akira Ajisaka
              aajisaka Akira Ajisaka
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m