HBASE-25207 Revisit the implementation and usage of RegionStates.include (#2571)
commit74df1e1abafffb667d5025129d18fd37eeb24667
authorDuo Zhang <zhangduo@apache.org>
Thu, 22 Oct 2020 13:50:43 +0000 (22 21:50 +0800)
committerGitHub <noreply@github.com>
Thu, 22 Oct 2020 13:50:43 +0000 (22 21:50 +0800)
tree36c1b0459fe6a589b4a50341fdc4bd76f73affd4
parent2cd5f914af38e13597209f7d53d38f77c653545b
HBASE-25207 Revisit the implementation and usage of RegionStates.include (#2571)

Remove the RegionStates.include method as its name is ambiguous.
Add more comments to describe the logic on why we filter region like
this.

Signed-off-by: Toshihiro Suzuki <brfrn169@gmail.com>
hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java
hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/AssignmentManager.java
hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/RegionStates.java
hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/EnableTableProcedure.java
hbase-server/src/test/java/org/apache/hadoop/hbase/master/assignment/TestRegionStates.java