Skip to content

HBASE-30008 NPE in CreateNamespaceProcedure and DeleteNamespaceProcedure#7957

Open
dParikesit wants to merge 1 commit intoapache:masterfrom
dParikesit:4-namespace-null-MQM
Open

HBASE-30008 NPE in CreateNamespaceProcedure and DeleteNamespaceProcedure#7957
dParikesit wants to merge 1 commit intoapache:masterfrom
dParikesit:4-namespace-null-MQM

Conversation

@dParikesit
Copy link
Contributor

JIRA: 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant