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

FileSystem#listStatusIterator does not check if given path exists

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.3.0, 3.2.2
    • fs
    • None
    • Incompatible change
    • Code which expects an empty list rather than FileNotFoundException may get caught out here

    Description

      The Javadocs of FileSystem#listStatusIterator(final Path p) state that it "@throws FileNotFoundException if <code>p</code> does not exist". However, that does not seem to be the case. The method simply creates a DirListingIterator which doesn't do an existence check.

      Attachments

        Issue Links

          Activity

            People

              stakiar Sahil Takiar
              stakiar Sahil Takiar
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: