[ 
https://issues.apache.org/jira/browse/HADOOP-2381?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12551091
 ] 

Doug Cutting commented on HADOOP-2381:
--------------------------------------

> Two options I could think of were null return or IOException.

We should throw an exception if an error occurs while fetching permission data.

> I don't see the extra burden on base class either (apart from check for null).

Adding methods to a base class is itself a burden, since they'll need to be 
maintained back-compatibly.  The base class should permit implementations that 
compute these lazily, but does not need explicit hooks for lazy 
implementations.  Computing something lazily should require overloading the 
getter.

> Support permission information in FileStatus
> --------------------------------------------
>
>                 Key: HADOOP-2381
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2381
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: fs
>    Affects Versions: 0.15.0
>            Reporter: Tsz Wo (Nicholas), SZE
>            Assignee: Raghu Angadi
>             Fix For: 0.16.0
>
>         Attachments: 2381_20071207.patch, HADOOP-2381.patch, 
> HADOOP-2381.patch, HADOOP-2381.patch
>
>
> In HADOOP-2288,  FileSystem API is changed to support access control.  
> FileStatus should also be changed to support permission information.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to