[ 
https://issues.apache.org/jira/browse/HDFS-13933?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16831129#comment-16831129
 ] 

Siyao Meng commented on HDFS-13933:
-----------------------------------

I've confirmed that the exceptions goes away with OpenJDK 11.0.3u7 on Ubuntu 
19.04. It does seem it was a bug on OpenJDK 11. Thanks for digging into this! 
[~knanasi]
{code}
INFO] Running org.apache.hadoop.fs.http.client.TestHttpFSFWithSWebhdfsFileSystem
[INFO] Tests run: 64, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 19.428 
s - in org.apache.hadoop.fs.http.client.TestHttpFSFWithSWebhdfsFileSystem
{code}
{code}
[INFO] Running org.apache.hadoop.crypto.key.kms.server.TestKMS
[INFO] Tests run: 31, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
134.355s - in org.apache.hadoop.crypto.key.kms.server.TestKMS
{code}

> [JDK 11] SWebhdfsFileSystem related tests fail with hostname verification 
> problems for "localhost"
> --------------------------------------------------------------------------------------------------
>
>                 Key: HDFS-13933
>                 URL: https://issues.apache.org/jira/browse/HDFS-13933
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: test
>            Reporter: Andrew Purtell
>            Priority: Minor
>
> Tests with issues:
> * TestHttpFSFWithSWebhdfsFileSystem
> * TestWebHdfsTokens
> * TestSWebHdfsFileContextMainOperations
> Possibly others. Failure looks like 
> {noformat}
> java.io.IOException: localhost:50260: HTTPS hostname wrong:  should be 
> <localhost>
> {noformat}
> 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



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to