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

Dibyendu Karmakar commented on HDFS-13583:
------------------------------------------

Hi [~linyiqun],  HDFS-13346 handles the synchronization part but if you see the 
RouterAdmin

 
{code:java}
private boolean clrQuota(String mount) throws IOException {
  return updateQuota(mount, HdfsConstants.QUOTA_DONT_SET,
      HdfsConstants.QUOTA_DONT_SET);
}
{code}
clrQuota() is sending HdfsConstants.QUOTA_DONT_SET to clear the quota, because 
of this quota is not getting cleared in nameservice side.

In FSDirAttrOp#unprotectedSetQuota 
{code:java}
if (nsQuota == HdfsConstants.QUOTA_DONT_SET) {
  nsQuota = oldNsQuota;
}
if (ssQuota == HdfsConstants.QUOTA_DONT_SET) {
  ssQuota = oldSsQuota;
}{code}
So, Instead of HdfsConstants.QUOTA_DONT_SET  we need to send 
HdfsConstants.QUOTA_RESET to clear the quota.

> RBF: Router admin clrQuota is not synchronized with nameservice
> ---------------------------------------------------------------
>
>                 Key: HDFS-13583
>                 URL: https://issues.apache.org/jira/browse/HDFS-13583
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>            Reporter: Dibyendu Karmakar
>            Assignee: Dibyendu Karmakar
>            Priority: Major
>
> Router admin -clrQuota command is removing the quota from the mount table 
> only, it is not getting synchronized with nameservice.
>  
>  



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