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:
Jean-Daniel Cryans 2010-11-11 06:16:34 +00:00
parent 6b5511e991
commit 6e80c35a98
2 changed files with 11 additions and 0 deletions

View File

@ -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

View File

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