HBASE-25854 Remove redundant AM in-memory state changes in CatalogJanitor (#3234)
commit6309c090b520e9b2b1a7b6e7be11a2066b587202
authorAndrew Purtell <apurtell@apache.org>
Thu, 6 May 2021 16:13:33 +0000 (6 09:13 -0700)
committerGitHub <noreply@github.com>
Thu, 6 May 2021 16:13:33 +0000 (6 09:13 -0700)
tree1447a492461930063343959b52cacaf53a3b020f
parentba4cb91211717c6ac808df441616efb1b08c7486
HBASE-25854 Remove redundant AM in-memory state changes in CatalogJanitor (#3234)

In CatalogJanitor we schedule GCRegionProcedure to clean up both
filesystem and in-memory state after a split, and
GCMultipleMergedRegionsProcedure to do the same for merges. Both of these
procedures clean up in-memory state, but CatalogJanitor also does this
redundantly just after scheduling the procedures. The cleanup should be
done in only one place. Presumably we are using the procedures to do it in
a principled way. Remove the redundancy in CatalogJanitor and fix any
follow on issues, like test failures.

Signed-off-by: Duo Zhang <zhangduo@apache.org>
Signed-off-by: Michael Stack <stack@apache.org>
Signed-off-by: Viraj Jasani <vjasani@apache.org>
hbase-server/src/main/java/org/apache/hadoop/hbase/master/janitor/CatalogJanitor.java
hbase-server/src/test/java/org/apache/hadoop/hbase/master/janitor/TestCatalogJanitorInMemoryStates.java