Details
-
Improvement
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
1.3.0, 1.2.1, 2.0.0
-
None
Description
RegionState.getRegionInTransition() is always used as a Set.
replace the Map with a Set, avoid some allocation and extra code.
also ClusterStatus.RegionInTransition has duplicated information.
The spec field contains the regionName (not encoded).
but we have the same info as part of the region_state with the HRegionInfo serialized.
unfortunately I don't think we can get rid of 'spec' that being a required field.
message RegionInTransition { required RegionSpecifier spec = 1; required RegionState region_state = 2; }