Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 19143 invoked from network); 8 Aug 2008 23:31:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Aug 2008 23:31:06 -0000 Received: (qmail 61161 invoked by uid 500); 8 Aug 2008 23:31:04 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 60753 invoked by uid 500); 8 Aug 2008 23:31:03 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 60742 invoked by uid 99); 8 Aug 2008 23:31:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Aug 2008 16:31:03 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Aug 2008 23:30:16 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 42572234C19B for ; Fri, 8 Aug 2008 16:30:44 -0700 (PDT) Message-ID: <578672413.1218238244270.JavaMail.jira@brutus> Date: Fri, 8 Aug 2008 16:30:44 -0700 (PDT) From: "Hairong Kuang (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Commented: (HADOOP-3497) File globbing with a PathFilter is too restrictive In-Reply-To: <1762646057.1212669825315.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-3497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12621094#action_12621094 ] Hairong Kuang commented on HADOOP-3497: --------------------------------------- Tom, nice change! Two comments: 1. I think the checking if paths are accepted by the filter or not (lines 932-936 in Filesystem.java) should be performed no matter last component of the path pattern has a pattern or not. Your patch does the checking only when last component does not have a pattern. 2. This patch probably should be marked as an incompatible change. The trunk implements a wrong semantics. > File globbing with a PathFilter is too restrictive > -------------------------------------------------- > > Key: HADOOP-3497 > URL: https://issues.apache.org/jira/browse/HADOOP-3497 > Project: Hadoop Core > Issue Type: Bug > Components: fs > Affects Versions: 0.17.0 > Reporter: Tom White > Attachments: hadoop-3497-test.patch, hadoop-3497.patch > > > Consider the file hierarchy > {noformat} > /a > /a/b > {noformat} > Calling the globStatus method on FileSystem with a path of {noformat}/*/*{noformat} and a PathFilter that only accepts {{/a/b}} returns no matches. It should return a single match: {{/a/b}}. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.