Uh oh!
There was an error while loading. Please reload this page.
HBASE-28928 Handle NPE in Split/Merge table when getMasterQuotaManager returns null - #6375
Conversation
Apache-HBase
commented
Oct 21, 2024
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Oct 21, 2024
🎊 +1 overall
This message was automatically generated. |
mnpoonia
commented
Oct 21, 2024
Spotbugs failure is unrelated. |
| // TODO: Clean up split and merge. Currently all over the place. | ||
| try { | ||
| env.getMasterServices().getMasterQuotaManager().onRegionMerged(this.mergedRegion); | ||
| MasterQuotaManager masterQuotaManager = env.getMasterServices().getMasterQuotaManager(); |
There was a problem hiding this comment.
Hi @mnpoonia in which case are you seeing this NPE? Master is starting up and quotas has not yet initialized?
There was a problem hiding this comment.
@NihalJain You are right. A Master was in transition when we got this exception. It was trying to become active. Sequence of events were as noted below for reference
2024-10-14 20:02:11,265 ERROR [PEWorker-31] procedure2.ProcedureExecutor - CODE-BUG: Uncaught runtime exception: pid=58745238, state=RUNNABLE:SPLIT_TABLE_REGION_PRE_OPERATION, locked=true; SplitTableRegionProcedure table=Table1, parent=36dcdeb9044bd0ece2eb046cf7fd7c2f, daughterA=cfba8d001ef9d3640060a4e845d3d013, daughterB=0becd69b7ccdc7e12dcc96cc637dc300
java.lang.NullPointerException
2024-10-14 20:02:11,269 INFO [aster/hmaster-1:61000:becomeActiveMaster] quotas.MasterQuotaManager - Quota support disabled
NihalJain
commented
Oct 22, 2024
+1, LGTM |
mnpoonia
commented
Oct 24, 2024
@NihalJain if everything is good. can you please help me in getting this committed upto branch-2.5. |
NihalJain
commented
Oct 24, 2024
Sure let me merge to master and ping back. |
NihalJain
commented
Oct 24, 2024
Merged. Thanks for the fix Aman. Could you please raise backports by cherry picking mfrom master.? |
…r returns null (apache#6375) Signed-off-by: Nihal Jain <nihaljain@apache.org>
…r returns null (apache#6375) Signed-off-by: Nihal Jain <nihaljain@apache.org>
…r returns null (apache#6375) Signed-off-by: Nihal Jain <nihaljain@apache.org>
…r returns null (apache#6375) Signed-off-by: Nihal Jain <nihaljain@apache.org>
…r returns null (apache#6375) Signed-off-by: Nihal Jain <nihaljain@apache.org>
No description provided.