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

FileSystem#listStatusIterator does not check if given path exists

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.0, 3.2.2
    • Component/s: fs
    • Labels:
      None

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: