You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Shilun Fan (Jira)" <ji...@apache.org> on 2024/02/11 23:12:00 UTC

[jira] [Updated] (HDFS-16271) RBF: NullPointerException when setQuota through routers with quota disabled

     [ https://issues.apache.org/jira/browse/HDFS-16271?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shilun Fan updated HDFS-16271:
------------------------------
    Component/s: rbf

> RBF: NullPointerException when setQuota through routers with quota disabled
> ---------------------------------------------------------------------------
>
>                 Key: HDFS-16271
>                 URL: https://issues.apache.org/jira/browse/HDFS-16271
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: rbf
>    Affects Versions: 3.3.1
>            Reporter: Chengwei Wang
>            Assignee: Chengwei Wang
>            Priority: Major
>             Fix For: 3.4.0, 3.3.2
>
>         Attachments: HDFS-16271.001.patch, HDFS-16271.002.patch
>
>
> When we started routers with *dfs.federation.router.quota.enable=false*, and try to setQuota through them, NullPointerException caught.
> The cuase of NPE is that the Router#quotaManager not initialized when dfs.federation.router.quota.enable=false,
>  but when executing setQuota rpc request inside router, we wolud use it in method Quota#isMountEntry without null check .
> I think it's better to check whether Router#isQuotaEnabled is true before use Router#quotaManager, and throw an IOException with readable message if need.



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

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