Shilun Fan created HADOOP-20100:
-----------------------------------

             Summary: Stabilize TestSSLHttpServerMTLS when TLS rejection causes 
a socket error
                 Key: HADOOP-20100
                 URL: https://issues.apache.org/jira/browse/HADOOP-20100
             Project: Hadoop Common
          Issue Type: Bug
            Reporter: Shilun Fan
            Assignee: Shilun Fan


{{TestSSLHttpServerMTLS.testUntrustedClientIsRejected}} currently requires the 
client to receive an {{SSLHandshakeException}} when presenting an untrusted 
certificate.

Depending on the timing of the TLS handshake and connection closure, the client 
can instead receive a {{{}SocketException{}}}, such as {{{}Broken pipe{}}}. The 
test then fails even though the server rejects the connection during the TLS 
handshake.

Observed in the [common / Java 17 CI 
job|https://github.com/smengcl/hadoop/actions/runs/45576683369/job/139084453099]
 for PR #9030:

 
{code:java}
Unexpected exception type thrown,
expected: <javax.net.ssl.SSLHandshakeException>
but was: <java.net.SocketException>Caused by: java.net.SocketException: Broken 
pipe
{code}
 



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to