HBASE-3994 SplitTransaction has a window where clients can

get RegionOfflineException


git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1138219 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jean-Daniel Cryans 2011-06-21 22:22:33 +00:00
parent 791659b27e
commit a6ef251118
2 changed files with 10 additions and 1 deletions

View File

@ -269,6 +269,8 @@ Release 0.91.0 - Unreleased
HBASE-3789 Cleanup the locking contention in the master
HBASE-3927 Display total uncompressed byte size of a region in web UI
HBASE-4011 New MasterObserver hook: post startup of active master
HBASE-3994 SplitTransaction has a window where clients can
get RegionOfflineException
TASKS
HBASE-3559 Move report of split to master OFF the heartbeat channel

View File

@ -892,8 +892,15 @@ public class HConnectionManager {
throw new TableNotFoundException(
"Table '" + Bytes.toString(tableName) + "' was not found.");
}
if (regionInfo.isSplit()) {
throw new RegionOfflineException("the only available region for" +
" the required row is a split parent," +
" the daughters should be online soon: " +
regionInfo.getRegionNameAsString());
}
if (regionInfo.isOffline()) {
throw new RegionOfflineException("region offline: " +
throw new RegionOfflineException("the region is offline, could" +
" be caused by a disable table call: " +
regionInfo.getRegionNameAsString());
}