[
https://issues.apache.org/jira/browse/HBASE-28928?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Aman Poonia updated HBASE-28928:
--------------------------------
Summary: Handle NPE in Split/Merge table when quota is null (was: Handle
NPE in Split/Merge table when quota is disabled)
> Handle NPE in Split/Merge table when quota is null
> --------------------------------------------------
>
> Key: HBASE-28928
> URL: https://issues.apache.org/jira/browse/HBASE-28928
> Project: HBase
> Issue Type: Bug
> Components: proc-v2
> Affects Versions: 2.5.8
> Reporter: Aman Poonia
> Assignee: Aman Poonia
> Priority: Critical
>
> Currently when doing splits or merge we notify quota manager about the same.
> But if quota instance is null on below call
> {code:java}
> // code placeholder
> env.getMasterServices().getMasterQuotaManager() {code}
> So the below two lines will throw unexpected exception which ideally can be
> handled.
> {code:java}
> // SplitTableRegionProcedure.java
> env.getMasterServices().getMasterQuotaManager().onRegionSplit(this.getParentRegion());
> {code}
> {code:java}
> // MergeTableRegionProcedure.java
>
> env.getMasterServices().getMasterQuotaManager().onRegionMerged(this.mergedRegion);
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)