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

FileSyste.globPaths does not validate the return list of Paths

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.14.3, 0.15.0
    • 0.16.0
    • None
    • None

    Description

      FileSystem.globPaths does not validate the return list of Paths.

      Here is an example.
      Consider a directory structure like
      /user/foo/DIR1/FILE1
      /user/foo/DIR2

      now if we pass an input path like "/user/foo/*/FILE1" to FileSystem.globPaths()
      It returns 2 entries as shown below
      /user/foo/DIR1/FILE1
      /user/foo/DIR2/FILE1

      Should globPaths validate this and return only valid Paths? This behavior was caught in FileSystem.validateInput() where an IOException is thrown while processing such a directory structure.

      Attachments

        1. HADOOP-2151.patch
          2 kB
          Lohit Vijaya Renu
        2. HADOOP-2151-2.patch
          2 kB
          Lohit Vijaya Renu
        3. HADOOP-2151-3.patch
          3 kB
          Lohit Vijaya Renu

        Activity

          People

            lohit Lohit Vijaya Renu
            lohit Lohit Vijaya Renu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: