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)