Hadoop Common
  1. Hadoop Common
  2. HADOOP-3497

File globbing with a PathFilter is too restrictive

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.17.0
    • Fix Version/s: 0.20.0
    • Component/s: fs
    • Labels:
      None
    • Hadoop Flags:
      Incompatible change, Reviewed
    • Release Note:
      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.

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

        Activity

        Tom White created issue -
        Tom White made changes -
        Field Original Value New Value
        Attachment hadoop-3497-test.patch [ 12383456 ]
        Tom White made changes -
        Attachment hadoop-3497.patch [ 12387747 ]
        Tom White made changes -
        Hadoop Flags [Incompatible change]
        Release Note 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.
        Tom White made changes -
        Attachment hadoop-3497-v2.patch [ 12388141 ]
        Tom White made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Tom White made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        Tom White made changes -
        Assignee Tom White [ tomwhite ]
        Status Open [ 1 ] Patch Available [ 10002 ]
        Tom White made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        Tom White made changes -
        Fix Version/s 0.19.0 [ 12313211 ]
        Status Open [ 1 ] Patch Available [ 10002 ]
        Tom White made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        Fix Version/s 0.19.0 [ 12313211 ]
        Tom White made changes -
        Attachment hadoop-3497-v3.patch [ 12390290 ]
        Tom White made changes -
        Fix Version/s 0.20.0 [ 12313438 ]
        Tom White made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Tom White made changes -
        Hadoop Flags [Incompatible change] [Incompatible change, Reviewed]
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Nigel Daley made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Tom White
            Reporter:
            Tom White
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development