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:
Huaxiang Sun 2018-07-10 16:05:57 -07:00
parent 0953eb7ed9
commit f2dc754aa3

View File

@ -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);
}