diff --git a/CHANGES.txt b/CHANGES.txt index d2acf053e50..20c2407f616 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -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 diff --git a/src/main/java/org/apache/hadoop/hbase/client/HConnectionManager.java b/src/main/java/org/apache/hadoop/hbase/client/HConnectionManager.java index 3be8bbd860e..9ad383ffc63 100644 --- a/src/main/java/org/apache/hadoop/hbase/client/HConnectionManager.java +++ b/src/main/java/org/apache/hadoop/hbase/client/HConnectionManager.java @@ -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()); }