[
https://issues.apache.org/jira/browse/HBASE-30008?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated HBASE-30008:
-----------------------------------
Labels: pull-request-available (was: )
> NPE in CreateNamespaceProcedure and DeleteNamespaceProcedure
> ------------------------------------------------------------
>
> Key: HBASE-30008
> URL: https://issues.apache.org/jira/browse/HBASE-30008
> Project: HBase
> Issue Type: Bug
> Affects Versions: 2.6.4
> Reporter: Dimas Shidqi Parikesit
> Priority: Critical
> Labels: pull-request-available
>
> Currently, CreateNamespaceProcedure:setNamespaceQuota and
> DeleteNamespaceProcedure:removeNamespaceQuota gets MasterQuotaManager by
> using `env.getMasterServices().getMasterQuotaManager()`.
>
> It is possible that HMaster marks itself initialized before it creates and
> stores quotaManager, which can cause NPE. Oher procedures prevent this issue
> by using `ProcedureSyncWait.getMasterQuotaManager(env)` which will wait for
> the quotaManager to be ready.
>
> I’ve provided a fix to use ProcedureSyncWait.getMasterQuotaManager instead of
> directly getting it from the masterServices.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)