Shilun Fan created HADOOP-20023:
-----------------------------------
Summary: 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
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]