Istvan Toth created HDFS-17828:
----------------------------------

             Summary: SocketTimeoutException not recognized in 
TestWebHdfsTimeouts with Java 24
                 Key: HDFS-17828
                 URL: https://issues.apache.org/jira/browse/HDFS-17828
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: hdfs, test
    Affects Versions: 3.5.0
            Reporter: Istvan Toth


Java 24 capitalizes "Connect" in th Exception message, which the test does not 
recognize.

{noformat}
[ERROR] 
org.apache.hadoop.hdfs.web.TestWebHdfsTimeouts.testAuthUrlConnectTimeout(TimeoutSource)[2]
 -- Time elapsed: 0.313 s <<< FAILURE!
java.lang.AssertionError: 
 Expected to find 'localhost:33473: connect timed out' but got unexpected 
exception: java.net.SocketTimeoutException: localhost:33473: Connect timed out
        at 
java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:537)
        at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:583)
{noformat}




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

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to