HBASE-20651 Master, prevents hbck or shell command to reassign the split parent region
Signed-off-by: Esteban Gutierrez <esteban@apache.org>
This commit is contained in:
parent
0953eb7ed9
commit
f2dc754aa3
@ -1632,6 +1632,11 @@ public class AssignmentManager extends ZooKeeperListener {
|
||||
* @param regionInfo
|
||||
*/
|
||||
public void regionOffline(final HRegionInfo regionInfo) {
|
||||
if (regionStates.isRegionInState(regionInfo, State.MERGED, State.SPLIT)) {
|
||||
LOG.info("Try to offline region " + regionInfo.getEncodedName() +
|
||||
", which is at state " + regionStates.getRegionState(regionInfo).getState() + ", skip");
|
||||
return;
|
||||
}
|
||||
regionOffline(regionInfo, null);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user