HBASE-26383 HBCK incorrectly reports inconsistencies for recently split regions following a master failover (#3775)
A regression was introduced by HBASE-25847 which changed regionInfo#isParentSplit to regionState#isSplit. The region state after restart is CLOSED instead of SPLIT. We need to check both regionState and regionInfo for split status. Signed-off-by: Viraj Jasani <vjasani@apache.org>
This commit is contained in:
parent
856d08e863
commit
64eb237120
|
@ -223,7 +223,8 @@ public class HbckChore extends ScheduledChore {
|
|||
.isTableState(regionInfo.getTable(), TableState.State.DISABLED)) {
|
||||
disabledTableRegions.add(regionInfo.getRegionNameAsString());
|
||||
}
|
||||
if (regionState.isSplit()) {
|
||||
// Check both state and regioninfo for split status, see HBASE-26383
|
||||
if (regionState.isSplit() || regionInfo.isSplit()) {
|
||||
splitParentRegions.add(regionInfo.getRegionNameAsString());
|
||||
}
|
||||
HbckRegionInfo.MetaEntry metaEntry =
|
||||
|
|
Loading…
Reference in New Issue