[ https://issues.apache.org/jira/browse/HBASE-28928?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17893709#comment-17893709 ]
Nihal Jain commented on HBASE-28928: ------------------------------------ Changed priority to Major as this does not happen very often. Please correct me if you feel otherwise. [~mnpoonia] > 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: Major > Labels: pull-request-available > > 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)