[ 
https://issues.apache.org/jira/browse/HDFS-16693?focusedWorklogId=795274&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-795274
 ]

ASF GitHub Bot logged work on HDFS-16693:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 26/Jul/22 13:39
            Start Date: 26/Jul/22 13:39
    Worklog Time Spent: 10m 
      Work Description: ZanderXu commented on PR #4633:
URL: https://github.com/apache/hadoop/pull/4633#issuecomment-1195498441

   Thanks @WeisonWei for your contribution.  Can you add a UT to reproduce it? 
   
   If `DFS_ROUTER_QUOTA_ENABLE=false`,  doesn't `getEachQuotaUsage` return 
IOException?
   ```
   Map<RemoteLocation, QuotaUsage> getEachQuotaUsage(String path)
         throws IOException {
       rpcServer.checkOperation(OperationCategory.READ);
       if (!router.isQuotaEnabled()) {
         throw new IOException("The quota system is disabled in Router.");
       }
      ...
   }
   ```
   




Issue Time Tracking
-------------------

    Worklog Id:     (was: 795274)
    Time Spent: 20m  (was: 10m)

> RBF: Fix NPE in Quota
> ---------------------
>
>                 Key: HDFS-16693
>                 URL: https://issues.apache.org/jira/browse/HDFS-16693
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Weison Wei
>            Assignee: Weison Wei
>            Priority: Critical
>              Labels: pull-request-available
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> when the switch `dfs.federation.router.quota.enable` is false, 
> Quota#isMountEntry will throw NPE;
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to