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

Yiqun Lin commented on HDFS-13307:
----------------------------------

[~liuhongtong], thanks for catching this. Just looking into the fix way in 
patch, I am thinking one better way: Query mount table quota value and support 
to set either one of them. The other one we can use queried value to set.
In addition, I suggest to fix HDFS-13308 issue under this JIRA as well. That's 
a simple fix, it should be okay to be fixed here.

> RBF: Fix setQuota bug
> ---------------------
>
>                 Key: HDFS-13307
>                 URL: https://issues.apache.org/jira/browse/HDFS-13307
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>            Reporter: liuhongtong
>            Priority: Major
>         Attachments: HDFS-13307.001.patch
>
>
> If hdfs dfsrouteradmin -setQuota only set one of -nsQuota and -ssQuota, the 
> another one will be cleared.
> The following is the step:
> 1. set /test1 -nsQuota 400 -ssQuota 200
> hdfs dfsrouteradmin -setQuota /test1 -nsQuota 400 -ssQuota 200
> Successfully set quota for mount point /test1
> 2. after a moment, list /test1, everything is ok.
> hdfs dfsrouteradmin -ls /test1
> Source                    Destinations              Owner                     
> Group                     Mode                      Quota/Usage              
> /test1                    ns1->/test1               hadp                      
> hadp                      rwxr-xr-x                 [NsQuota: 400/0, SsQuota: 
> 200 B/0 B]
> 3. only set /test1 -nsQuota 600
> hdfs dfsrouteradmin -setQuota /test1 -nsQuota 600
> Successfully set quota for mount point /test1
> 4.  after a moment, list /test1, now ssQuota has been cleared.
> hdfs dfsrouteradmin -ls /test1
> Source                    Destinations              Owner                     
> Group                     Mode                      Quota/Usage              
> /test1                    ns1->/test1               hadp                      
> hadp                      rwxr-xr-x                 [NsQuota: 600/0, SsQuota: 
> -/-]
>  [^HDFS-13307.001.patch] 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to