HBASE-3221 Race between splitting and disabling
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1033821 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6b5511e991
commit
6e80c35a98
|
@ -676,6 +676,7 @@ Release 0.90.0 - Unreleased
|
||||||
HBASE-3216 Move HBaseFsck from client to util
|
HBASE-3216 Move HBaseFsck from client to util
|
||||||
HBASE-3219 Split parents are reassigned on restart and on disable/enable
|
HBASE-3219 Split parents are reassigned on restart and on disable/enable
|
||||||
HBASE-3222 Regionserver region listing in UI is no longer ordered
|
HBASE-3222 Regionserver region listing in UI is no longer ordered
|
||||||
|
HBASE-3221 Race between splitting and disabling
|
||||||
|
|
||||||
|
|
||||||
IMPROVEMENTS
|
IMPROVEMENTS
|
||||||
|
|
|
@ -1620,6 +1620,16 @@ public class AssignmentManager extends ZooKeeperListener {
|
||||||
regionOffline(parent);
|
regionOffline(parent);
|
||||||
regionOnline(a, hsi);
|
regionOnline(a, hsi);
|
||||||
regionOnline(b, hsi);
|
regionOnline(b, hsi);
|
||||||
|
|
||||||
|
// There's a possibility that the region was splitting while a user asked
|
||||||
|
// the master to disable, we need to make sure we close those regions in
|
||||||
|
// that case. This is not racing with the region server itself since RS
|
||||||
|
// report is done after the split transaction completed.
|
||||||
|
if (this.zkTable.isDisablingOrDisabledTable(
|
||||||
|
parent.getTableDesc().getNameAsString())) {
|
||||||
|
unassign(a);
|
||||||
|
unassign(b);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue