Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-16247

NPE in FsUrlConnection

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.1.2
    • 3.3.0, 3.2.1, 3.1.3
    • hdfs-client
    • None

    Description

      FsUrlConnection doesn't handle relativePath correctly after the change HADOOP-15217

      
      Exception in thread "main" java.lang.NullPointerException
       at org.apache.hadoop.fs.Path.isUriPathAbsolute(Path.java:385)
       at org.apache.hadoop.fs.Path.isAbsolute(Path.java:395)
       at org.apache.hadoop.fs.RawLocalFileSystem.pathToFile(RawLocalFileSystem.java:87)
       at org.apache.hadoop.fs.RawLocalFileSystem.deprecatedGetFileStatus(RawLocalFileSystem.java:636)
       at org.apache.hadoop.fs.RawLocalFileSystem.getFileLinkStatusInternal(RawLocalFileSystem.java:930)
       at org.apache.hadoop.fs.RawLocalFileSystem.getFileStatus(RawLocalFileSystem.java:631)
       at org.apache.hadoop.fs.FilterFileSystem.getFileStatus(FilterFileSystem.java:454)
       at org.apache.hadoop.fs.ChecksumFileSystem$ChecksumFSInputChecker.<init>(ChecksumFileSystem.java:146)
       at org.apache.hadoop.fs.ChecksumFileSystem.open(ChecksumFileSystem.java:347)
       at org.apache.hadoop.fs.FileSystem.open(FileSystem.java:899)
       at org.apache.hadoop.fs.FsUrlConnection.connect(FsUrlConnection.java:62)
       at org.apache.hadoop.fs.FsUrlConnection.getInputStream(FsUrlConnection.java:71)
       at java.net.URL.openStream(URL.java:1045)
       at UrlProblem.testRelativePath(UrlProblem.java:33)
       at UrlProblem.main(UrlProblem.java:19)
      
      

      Attachments

        1. HADOOP-16247-001.patch
          5 kB
          Karthik Palanisamy
        2. HADOOP-16247-002.patch
          5 kB
          Karthik Palanisamy
        3. HADOOP-16247-003.patch
          5 kB
          Karthik Palanisamy
        4. HADOOP-16247-004.patch
          5 kB
          Karthik Palanisamy
        5. HADOOP-16247-005.patch
          5 kB
          Karthik Palanisamy
        6. HADOOP-16247-006.patch
          5 kB
          Karthik Palanisamy
        7. HADOOP-16247-007.patch
          5 kB
          Karthik Palanisamy
        8. HADOOP-16247-008.patch
          5 kB
          Karthik Palanisamy
        9. HADOOP-16247-009.patch
          5 kB
          Karthik Palanisamy

        Issue Links

          Activity

            People

              kpalanisamy Karthik Palanisamy
              kpalanisamy Karthik Palanisamy
              Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: