[ 
https://issues.apache.org/jira/browse/HDFS-14939?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16962056#comment-16962056
 ] 

Steve Loughran commented on HDFS-14939:
---------------------------------------


Proposed

* you define a a new capability for PathCapabilities; those stores which 
implement setQuota return true.
* FilterFileSystem to forward the new methods to the wrapped FS.
* ViewFileSystem to forward to the wrapped FS
* Something in Filesystem.md which defines quotas and what setting/getting 
means. Something about who is permitted to set them in a secure cluster too.
* a (minimal) abstract contract test for setQuota designed to explore the 
failure conditions: negative numbers, quota of 2^63-1, ..., invalid path, 
relative path.

FileContext also needs to be looked that, primarily by adding the same methods 
in FileContext, invoking AbstractFileSystem etc etc. Nothing hard, just extra 
housekeeping.



> Update documnet and UT tests for Quota API.
> -------------------------------------------
>
>                 Key: HDFS-14939
>                 URL: https://issues.apache.org/jira/browse/HDFS-14939
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: webhdfs
>            Reporter: Surendra Singh Lilhore
>            Priority: Major
>
> Refer comment in HDFS-8631.
> {quote} # mention to me when you're going near this class as I can make 
> suggestions in advance.
>  # I now expect the documentation and the extra testing. Who is going to 
> volunteer to do this?{quote}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to