HBASE-27718 The regionStateNode only need remove once in regionOffline (#5106)

Signed-off-by: Duo Zhang <zhangduo@apache.org>
(cherry picked from commit e6977a9597)
This commit is contained in:
chaijunjie0101 2023-03-19 20:14:52 +08:00 committed by Duo Zhang
parent 8f6d6b9ec3
commit a6b99faa00
2 changed files with 0 additions and 7 deletions

View File

@ -1087,8 +1087,6 @@ public class AssignmentManager {
regionStateStore.deleteRegions(regions);
for (int i = 0; i < regions.size(); ++i) {
final RegionInfo regionInfo = regions.get(i);
// we expect the region to be offline
regionStates.removeFromOfflineRegions(regionInfo);
regionStates.deleteRegion(regionInfo);
}
}

View File

@ -680,11 +680,6 @@ public class RegionStates {
regionOffline.put(regionNode.getRegionInfo(), regionNode);
}
// TODO: Unused.
public void removeFromOfflineRegions(final RegionInfo regionInfo) {
regionOffline.remove(regionInfo);
}
// ==========================================================================
// Region FAIL_OPEN helpers
// ==========================================================================