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

TestHftpURLTimeouts throws NPE

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.0-beta
    • Component/s: hdfs-client
    • Labels:
      None
    • Environment:

      java version "1.7.0_06-icedtea"
      OpenJDK Runtime Environment (fedora-2.3.1.fc17.2-i386)
      OpenJDK Client VM (build 23.2-b09, mixed mode)

    • Hadoop Flags:
      Reviewed

      Description

      The case fails at line 116, where message is null. I guess this may be an openjdk-specific behavior, but it would be nice to have it fixed although openjdk is not officially supported.

      FYI: The exception is thrown with null message at java.net.SocksSocketImpl.

          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

        1. hdfs-4013.patch
          2 kB
          Chao Shi
        2. hdfs-4013.patch
          1 kB
          Chao Shi
        3. hdfs-4013.patch
          2 kB
          Chao Shi

          Activity

            People

            • Assignee:
              stepinto Chao Shi
              Reporter:
              stepinto Chao Shi
            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: