Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
The reason is that, in order to get the compaction state of table, we need to iterate all regions and call getRegionInfo, the default timeout for rpc is 5000ms, so if there exists closed reigons, this line will be blocked for long time.
CompactionState compactionState = admin.getCompactionState(table.getName()).get();
The solution in this patch is to add compaction state to RegionMetrics, so when getting the compaction state, we could use the in memory state instead of doing rpc.
Affect branch-2+, in branch-1 it will display exception stack info immediately.