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

TestWebHdfsTimeouts fails due to null SocketTimeoutException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Cannot Reproduce
    • 3.0.0-alpha2
    • None
    • webhdfs
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: