Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-11059

TestWebHdfsTimeouts fails due to null SocketTimeoutException

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 3.0.0-alpha2
    • Fix Version/s: None
    • Component/s: webhdfs
    • Labels:
      None

      Description

      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:

          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();   <<<<==
          }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jzhuge John Zhuge
                Reporter:
                jzhuge John Zhuge
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: