Dimas Shidqi Parikesit created HBASE-30008:
----------------------------------------------

             Summary: 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


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)

Reply via email to