HBASE-23932 Minor improvements to Region Normalizer (#1258)
commit5750876191eb58e1f69e118b28282c4cf3f14b8c
authorNick Dimiduk <ndimiduk@apache.org>
Tue, 10 Mar 2020 17:08:37 +0000 (10 10:08 -0700)
committerGitHub <noreply@github.com>
Tue, 10 Mar 2020 17:08:37 +0000 (10 10:08 -0700)
tree42980cbad712da697ea5a2fde787e904cdb8f7de
parent31484f007f355c2d99fb770f2e28c0d45fb49cdd
HBASE-23932 Minor improvements to Region Normalizer (#1258)

- consolidate checks made by master on behalf of balancer and
   normalizer: deciding if the master is in a healthy state for
   running any actions at all (skipRegionManagementAction). Normalizer
   now does as balancer did previously.
 - both balancer and normalizer make one final check on above
   conditions between calculating an action plan and executing the
   plan. should make the process more responsive to shutdown
   requests.
 - change normalizer to only consider acting on a region when it is in
   the OPEN state. previously we would normalizer attempt to merge a
   region that was already in a MERGING_NEW,MERGING,MERGED state.
 - fix some typos in variable names.

Signed-off-by: Josh Elser <elserj@apache.org>
Signed-off-by: binlijin <binlijin@gmail.com>
hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java
hbase-server/src/main/java/org/apache/hadoop/hbase/master/normalizer/AbstractRegionNormalizer.java
hbase-server/src/test/java/org/apache/hadoop/hbase/master/normalizer/TestMergeNormalizer.java
hbase-server/src/test/java/org/apache/hadoop/hbase/master/normalizer/TestSimpleRegionNormalizer.java