John Zhuge created HDFS-11059:
---------------------------------

             Summary: TestWebHdfsTimeouts fails due to null 
SocketTimeoutException
                 Key: HDFS-11059
                 URL: https://issues.apache.org/jira/browse/HDFS-11059
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: webhdfs
    Affects Versions: 3.0.0-alpha2
            Reporter: John Zhuge
            Assignee: John Zhuge
            Priority: Minor


TestWebHdfsTimeouts expects SocketTimeoutException with "connect timed out" or 
"Read timed out" message but fails when encountering "null" message sometimes. 
Occurred 4 out of 100 tests.

{{SocksSocketImpl#remainingMillis}} may send null SocketTimeoutException:
{code}
    private static int remainingMillis(long deadlineMillis) throws IOException {
        if (deadlineMillis == 0L)
            return 0;

        final long remaining = deadlineMillis - System.currentTimeMillis();
        if (remaining > 0)
            return (int) remaining;

        throw new SocketTimeoutException();   <<<<==
    }
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to