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

FileSystem::ListStatus should throw FileNotFoundException

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.21.0
    • fs
    • None
    • Incompatible change, Reviewed
    • Hide
      FileSystem listStatus method throws FileNotFoundException for all implementations. Application code should catch or propagate FileNotFoundException.
      Show
      FileSystem listStatus method throws FileNotFoundException for all implementations. Application code should catch or propagate FileNotFoundException.

    Description

      As discussed in HDFS-538, it would be better for FileSystem and its implementations to throw FileNotFoundException when the file is not found, rather than returning null. This will bring it in line with getFileStatus and, I expect, default user expectations.

      Attachments

        1. HADOOP-6201.patch
          14 kB
          Jakob Homan

        Issue Links

          Activity

            People

              jghoman Jakob Homan
              jghoman Jakob Homan
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: