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

Signed-off-by: Duo Zhang <zhangduo@apache.org>
This commit is contained in:
chaijunjie0101 2023-03-19 20:14:52 +08:00 committed by GitHub
parent 3c2c685892
commit e6977a9597
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 7 deletions

View File

@ -1094,8 +1094,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
// ==========================================================================