[
https://issues.apache.org/jira/browse/HDFS-13933?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16818631#comment-16818631
]
Siyao Meng commented on HDFS-13933:
-----------------------------------
Same error with 4 TestKMS unit tests:
{code}
[ERROR] testDelegationTokensOpsHttpsKerberized(org.apache.hadoop.crypto.key.kms.
server.TestKMS) Time elapsed: 1.784 s <<< ERROR!
java.io.IOException: HTTPS hostname wrong: should be <localhost>
at java.base/sun.net.www.protocol.https.HttpsClient.checkURLSpoofing(Htt
psClient.java:648)
at java.base/sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsCl
ient.java:581)
at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnecti
on.connect(AbstractDelegateHttpsURLConnection.java:185)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0
(HttpURLConnection.java:1581)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(
HttpURLConnection.java:1509)
at java.base/java.net.HttpURLConnection.getResponseCode(HttpURLConnectio
n.java:527)
at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getRespon
seCode(HttpsURLConnectionImpl.java:329)
at org.apache.hadoop.util.HttpExceptionUtils.validateResponse(HttpExcept
ionUtils.java:140)
...
{code}
Other three failed TestKMS tests (related) are:
{code}
TestKMS.testDelegationTokensOpsHttpsPseudo
TestKMS.testStartStopHttpsKerberos
TestKMS.testStartStopHttpsPseudo
{code}
Compiled with JDK 8 and ran on OpenJDK 11. The root cause should be the same.
> [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]