HBASE-3164 Handle case where we open META, ROOT has been closed but znode location not deleted yet, and try to update META location in ROOT

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1029120 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jonathan Gray 2010-10-30 17:04:06 +00:00
parent f14f3b216c
commit b6604764b5
2 changed files with 4 additions and 1 deletions

View File

@ -631,6 +631,9 @@ Release 0.21.0 - Unreleased
hudson (nicolas via jgray)
HBASE-3163 If we timeout PENDING_CLOSE and send another closeRegion RPC,
need to handle NSRE from RS (comes as a RemoteException)
HBASE-3164 Handle case where we open META, ROOT has been closed but
znode location not deleted yet, and try to update META
location in ROOT
IMPROVEMENTS

View File

@ -124,7 +124,7 @@ public class MetaEditor {
HRegionInfo regionInfo, HServerInfo serverInfo)
throws IOException, ConnectException {
HRegionInterface server = catalogTracker.waitForRootServerConnectionDefault();
if (server == null) throw new NullPointerException("No server for -ROOT-");
if (server == null) throw new IOException("No server for -ROOT-");
updateLocation(server, CatalogTracker.ROOT_REGION, regionInfo, serverInfo);
}