You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Aman Poonia (Jira)" <ji...@apache.org> on 2024/10/21 10:03:00 UTC
[jira] [Updated] (HBASE-28928) Handle NPE in Split/Merge table when getMasterQuotaManager returns null
[ 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 getMasterQuotaManager returns null (was: Handle NPE in Split/Merge table when quota is null)
> Handle NPE in Split/Merge table when getMasterQuotaManager returns 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)