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

Yiqun Lin commented on HDFS-13346:
----------------------------------

Thanks [~elgoiri] for the review.
{quote}
In HDFS-13346.005.patch, I would prefer using a Whitebox instead of having to 
expose the quota module but I'm OK with it.
{quote}
Had used Whitebox in the latest patch.
Attach the patch and pending Jenkins.


> RBF: Fix synchronization of router quota and ns quota
> -----------------------------------------------------
>
>                 Key: HDFS-13346
>                 URL: https://issues.apache.org/jira/browse/HDFS-13346
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>            Reporter: liuhongtong
>            Assignee: Yiqun Lin
>            Priority: Major
>              Labels: incompatible
>         Attachments: HDFS-13346.001.patch, HDFS-13346.002.patch, 
> HDFS-13346.003.patch, HDFS-13346.004.patch, HDFS-13346.005.patch, 
> HDFS-13346.006.patch
>
>
> Check Router Quota and ns Quota:
> {code}
> $ hdfs dfsrouteradmin -ls /ns10t
> Mount Table Entries:
> Source                    Destinations              Owner                     
> Group                     Mode                      Quota/Usage              
> /ns10t                    ns10->/ns10t              hadp                      
> hadp                      rwxr-xr-x                 [NsQuota: 150/319, 
> SsQuota: -/-]
> /ns10t/ns1mountpoint      ns1->/a/tt                hadp                      
> hadp                      rwxr-xr-x                 [NsQuota: -/-, SsQuota: 
> -/-]
> $ hdfs dfs -count -q hdfs://ns10/ns10t
>          150            -155            none             inf            3     
>      302                  0 hdfs://ns10/ns10t
> {code}
> Update Router Quota:
> {code:java}
> $ hdfs dfsrouteradmin -setQuota /ns10t -nsQuota 400
> Successfully set quota for mount point /ns10t
> {code}
> Check Router Quota and ns Quota:
> {code:java}
> $ hdfs dfsrouteradmin -ls /ns10t
> Mount Table Entries:
> Source                    Destinations              Owner                     
> Group                     Mode                      Quota/Usage              
> /ns10t                    ns10->/ns10t              hadp                      
> hadp                      rwxr-xr-x                 [NsQuota: 400/319, 
> SsQuota: -/-]
> /ns10t/ns1mountpoint      ns1->/a/tt                hadp                      
> hadp                      rwxr-xr-x                 [NsQuota: -/-, SsQuota: 
> -/-]
> $ hdfs dfs -count -q hdfs://ns10/ns10t
>          150            -155            none             inf            3     
>      302                  0 hdfs://ns10/ns10t
> {code}
> Now Router Quota has updated successfully, but ns Quota not.
>  



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

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

Reply via email to