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

File globbing with a PathFilter is too restrictive

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.17.0
    • 0.20.0
    • fs
    • None
    • Incompatible change, Reviewed
    • Hide
      Changed the semantics of file globbing with a PathFilter (using the globStatus method of FileSystem). Previously, the filtering was too restrictive, so that a glob of /*/* and a filter that only accepts /a/b would not have matched /a/b. With this change /a/b does match.
      Show
      Changed the semantics of file globbing with a PathFilter (using the globStatus method of FileSystem). Previously, the filtering was too restrictive, so that a glob of /*/* and a filter that only accepts /a/b would not have matched /a/b. With this change /a/b does match.

    Description

      Consider the file hierarchy

      /a
      /a/b
      

      Calling the globStatus method on FileSystem with a path of

      /*/*

      and a PathFilter that only accepts /a/b returns no matches. It should return a single match: /a/b.

      Attachments

        1. hadoop-3497-v3.patch
          6 kB
          Thomas White
        2. hadoop-3497-v2.patch
          5 kB
          Thomas White
        3. hadoop-3497-test.patch
          2 kB
          Thomas White
        4. hadoop-3497.patch
          6 kB
          Thomas White

        Activity

          People

            tomwhite Thomas White
            tomwhite Thomas White
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: