HBASE-24720: Meta replicas not cleaned when disabled (#2057)
commit3e709c6f53c9dfbf2a8ef469bb78a1dc1444fcf9
authorBukrosSzabolcs <bukros.szabolcs@gmail.com>
Tue, 14 Jul 2020 16:24:55 +0000 (14 18:24 +0200)
committerGitHub <noreply@github.com>
Tue, 14 Jul 2020 16:24:55 +0000 (14 18:24 +0200)
tree11fe5b714e7b8e5469cd84360ba46e10e154927f
parent70cfe2525e9732350a343b27c985b589166eac75
HBASE-24720: Meta replicas not cleaned when disabled (#2057)

- make sure to always clean up excess meta replicas not just when their
number get decreased
- make sure NotServingRegionException is handled properly even when
wrapped
- add test

Signed-off-by: Peter Somogyi <psomogyi@apache.org>
hbase-server/src/main/java/org/apache/hadoop/hbase/master/MasterMetaBootstrap.java
hbase-server/src/main/java/org/apache/hadoop/hbase/master/ServerManager.java
hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestMetaWithReplicasBasic.java