HBASE-27718 The regionStateNode only need remove once in regionOffline (#5106)
Signed-off-by: Duo Zhang <zhangduo@apache.org>
This commit is contained in:
parent
3c2c685892
commit
e6977a9597
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
// ==========================================================================
|
||||
|
|
Loading…
Reference in New Issue