[
https://issues.apache.org/jira/browse/HADOOP-10942?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14095481#comment-14095481
]
Daryn Sharp commented on HADOOP-10942:
--------------------------------------
I don't have a jira handy for the permissions regression. I can guarantee I
did fix it because production code discovered the regression while testing 2.x.
For the immediate file status, the prior code used to loop over the path
components even if there are globs. In this patch, it does an immediate file
status on the full path. This reduces the overhead for FsShell commands.
FileContext jira is HADOOP-10944.
> Globbing optimizations and regression fix
> -----------------------------------------
>
> Key: HADOOP-10942
> URL: https://issues.apache.org/jira/browse/HADOOP-10942
> Project: Hadoop Common
> Issue Type: Bug
> Components: fs
> Affects Versions: 3.0.0, 2.1.0-beta
> Reporter: Daryn Sharp
> Assignee: Daryn Sharp
> Priority: Critical
> Attachments: HADOOP-10942.patch
>
>
> When globbing was commonized to support both filesystem and filecontext, it
> regressed a fix that prevents an intermediate glob that matches a file from
> throwing a confusing permissions exception. The hdfs traverse check requires
> the exec bit which a file does not have.
> Additional optimizations to reduce rpcs actually increases them if
> directories contain 1 item.
--
This message was sent by Atlassian JIRA
(v6.2#6252)