Istvan Toth created HBASE-29551:
-----------------------------------

             Summary: Unexpected Exception type in TLS tests with Java 21
                 Key: HBASE-29551
                 URL: https://issues.apache.org/jira/browse/HBASE-29551
             Project: HBase
          Issue Type: Bug
          Components: test
            Reporter: Istvan Toth


Looks like the Exception type hierarchy changed between Java 17 and 21.


{noformat}
[ERROR] 
org.apache.hadoop.hbase.security.TestMutualTlsServerSide.testClientAuth[187: 
caKeyType=EC, certKeyType=EC, keyPassword=pa$$w0rd, 
validateClientHostnames=false, testCase=false, 
clientAuthMode=NON_VERIFIABLE_CERT] -- Time elapsed: 0.085 s <<< FAILURE!
java.lang.AssertionError: Expected: an instance of 
javax.net.ssl.SSLHandshakeException
     but: <java.io.IOException: Call to address=localhost:37813 failed on local 
exception: java.io.IOException: 
org.apache.hbase.thirdparty.io.netty.handler.codec.DecoderException: 
javax.net.ssl.SSLHandshakeException: Received fatal alert: certificate_unknown> 
is a java.io.IOException
        at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
        at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:8)
        at 
org.apache.hadoop.hbase.security.AbstractTestMutualTls.testClientAuth(AbstractTestMutualTls.java:218)
{noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to