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

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • None
    • None
    • test
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: