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

The RemoteIterator returned by DistributedFileSystem.listFiles(..) may throw NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.1.0-beta
    • 2.2.0
    • hdfs-client
    • None
    • Reviewed

    Description

      Get a RemoteIterator from DistributedFileSystem.listFiles(..) with a relative path. Then, it will result a NullPointerException when calling hasNext() from the RemoteIterator.

      This bug was discovered by Arnaud:
      http://hortonworks.com/community/forums/topic/new-bug-in-hdfs-listfiles-method/

      Attachments

        1. h5228_20130919_test.patch
          2 kB
          Tsz-wo Sze
        2. h5228_20130919.patch
          5 kB
          Tsz-wo Sze
        3. HDFS-5228.2.patch
          4 kB
          Chris Nauroth

        Issue Links

          Activity

            People

              szetszwo Tsz-wo Sze
              szetszwo Tsz-wo Sze
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: