[
https://issues.apache.org/jira/browse/HADOOP-20023?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18128467#comment-18128467
]
ASF GitHub Bot commented on HADOOP-20023:
-----------------------------------------
joseluisll commented on PR #8831:
URL: https://github.com/apache/hadoop/pull/8831#issuecomment-6251889463
This looks like a duplicate of HADOOP-19997, which has an open PR for the
same assertion: apache/hadoop#8783 (CI and Yetus green). I made measurements
that surfaced additional errors under TLSv1.3 , check the PR and contribute
review, comment or add what you need.
> 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
> Affects Versions: 3.6.0
> 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
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]