[
https://issues.apache.org/jira/browse/HADOOP-20023?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Shilun Fan resolved HADOOP-20023.
---------------------------------
Resolution: Duplicate
> Fix overly strict exception assertion in TestSSLHttpServerMTLS
> --------------------------------------------------------------
>
> Key: HADOOP-20023
> URL: https://issues.apache.org/jira/browse/HADOOP-20023
> Project: Hadoop Common
> Issue Type: Bug
> Components: test
> Reporter: Shilun Fan
> Assignee: Shilun Fan
> Priority: Major
> Labels: pull-request-available
>
> TestSSLHttpServerMTLS.testUntrustedClientIsRejected expects
> SSLHandshakeException when an HTTPS client presents a certificate that the
> server does not trust.
> However, the client can receive SocketException ("Broken pipe") if the server
> closes the connection before the client reads the TLS alert.
>
> The test then fails even though the connection was rejected.
> This occurred in the Java 17 / Ubuntu 24 GitHub Actions job for PR #8821.
> All three attempts failed with:
>
> {code:java}
> Unexpected exception type thrown,
> expected: <javax.net.ssl.SSLHandshakeException>
> but was: <java.net.SocketException>
> Caused by: java.net.SocketException: Broken pipe
> at sun.security.ssl.SSLSocketOutputRecord.flush(...)
> at sun.security.ssl.HandshakeOutStream.flush(...)
> at sun.security.ssl.Finished$T12FinishedProducer.onProduceFinished(...) {code}
>
> Failing job:
> [https://github.com/smengcl/hadoop/actions/runs/38543349319/job/115787957238]
>
>
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]