hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Surendra Singh Lilhore (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-8631) WebHDFS : Support list/setQuota
Date Wed, 21 Oct 2015 14:48:27 GMT

    [ 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...

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);

I am not using anywhere in my patch {{String.valueOf(Long.MAX_VALUE);}}. If you are talking
{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

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

View raw message