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

Surendra Singh Lilhore commented on HDFS-8631:
----------------------------------------------

Thanks  [~andreina] for review...

I have one doubt...

{quote}
Both in NamespaceQuotaParam and in StoragespaceQuotaParam, can update below as 
default value:
public static final String DEFAULT = 
String.valueOf(HdfsConstants.QUOTA_DONT_SET);
instead of 
public static final String DEFAULT = String.valueOf(Long.MAX_VALUE);
{quote}

I am not using anywhere in my patch {{String.valueOf(Long.MAX_VALUE);}}. If you 
are talking about
{code}public static final String DEFAULT = "9223372036854775807";{code}

We can't use expression as default value for annotation attribute. If we use, 
we will get compilation error like this..
{code}The value for annotation attribute DefaultValue.value must be a constant 
expression{code}
So I used "9223372036854775807" as default value and this is same as 
{{QUOTA_DONT_SET}} and {{Long.MAX_VALUE}}.

Please can you check once?

> WebHDFS : Support list/setQuota
> -------------------------------
>
>                 Key: HDFS-8631
>                 URL: https://issues.apache.org/jira/browse/HDFS-8631
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>            Reporter: nijel
>            Assignee: Surendra Singh Lilhore
>         Attachments: HDFS-8631-001.patch
>
>
> User is able do quota management from filesystem object. Same operation can 
> be allowed trough REST API.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to