dParikesit opened a new pull request, #7957:
URL: https://github.com/apache/hbase/pull/7957

   JIRA: [HBASE-30008](https://issues.apache.org/jira/browse/HBASE-30008)
   
   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 is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to