Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-13933

[JDK 11] SWebhdfsFileSystem related tests fail with hostname verification problems for "localhost"

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: test
    • Labels:
      None

      Description

      Tests with issues:

      • TestHttpFSFWithSWebhdfsFileSystem
      • TestWebHdfsTokens
      • TestSWebHdfsFileContextMainOperations

      Possibly others. Failure looks like

      java.io.IOException: localhost:50260: HTTPS hostname wrong:  should be <localhost>
      

      These tests set up a trust store and use HTTPS connections, and with Java 11 the client validation of the server name in the generated self-signed certificate is failing. Exceptions originate in the JRE's HTTP client library. How everything hooks together uses static initializers, static methods, JUnit MethodRules... There's a lot to unpack, not sure how to fix.

      This is Java 11+28

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                apurtell Andrew Kyle Purtell
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: