guluo created HBASE-27859: ----------------------------- Summary: HMaster.getCompactionState can happen NPE when region state is closed Key: HBASE-27859 URL: https://issues.apache.org/jira/browse/HBASE-27859 Project: HBase Issue Type: Bug Components: master Affects Versions: 2.4.13, 2.3.7 Environment: hbase 2.4.13 Reporter: guluo Attachments: 2023-05-11_001147.png
Following steps to reproduce: # create table {code:java} create 'hbase_region_test', 'info', SPLITS => ['3', '7'] {code} # write data {code:java} //代码占位符 put 'hbase_region_test', '10010', 'info:name', 'Tom' put 'hbase_region_test', '20010', 'info:name', 'Tom' put 'hbase_region_test', '30010', 'info:name', 'Tom' put 'hbase_region_test', '40010', 'info:name', 'Tom' put 'hbase_region_test', '50010', 'info:name', 'Tom' put 'hbase_region_test', '60010', 'info:name', 'Tom' put 'hbase_region_test', '70010', 'info:name', 'Tom' put 'hbase_region_test', '80010', 'info:name', 'Tom' put 'hbase_region_test', '90010', 'info:name', 'Tom' {code} # closed a region of hbase_region_test !2023-05-11_001147.png! # calling method HMaster.getCompactionState: At this step, we can trigger this method to be called by opening hbase UI page about 'hbase_region_test' table detailes and getting the compaction state of 'hbase_region_test' samply # HMaster print NPE logs about HMaster.getCompactionState -- This message was sent by Atlassian Jira (v8.20.10#820010)