You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Dimas Shidqi Parikesit (Jira)" <ji...@apache.org> on 2026/02/27 13:40:00 UTC

[jira] [Created] (HBASE-29936) RegionServerRpcQuotaManager throws NPE in checkScanQuota and checkBatchQuota when quotaCache is null

Dimas Shidqi Parikesit created HBASE-29936:
----------------------------------------------

             Summary: RegionServerRpcQuotaManager throws NPE in checkScanQuota and checkBatchQuota when quotaCache is null
                 Key: HBASE-29936
                 URL: https://issues.apache.org/jira/browse/HBASE-29936
             Project: HBase
          Issue Type: Bug
    Affects Versions: 2.6.4
            Reporter: Dimas Shidqi Parikesit


When a RpcThrottlingException is raised during checkScanQuota or checkBatchQuota, the error handler always calls quotaCache.getQuotaUserName(ugi). If quota is disabled (`hbase.quota.enabled: false`), quotaCache will be null, so the exception handler itself throws NullPointerException. This masks the original RpcThrottlingException and can break RPC handling when quotas are disabled or not yet initialized.

We propose to add `isQuotaEnabled()` check in the exception handling and use `ugi.getUserName()` if the quota is disabled.



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