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:
parent
f14f3b216c
commit
b6604764b5
|
@ -631,6 +631,9 @@ Release 0.21.0 - Unreleased
|
||||||
hudson (nicolas via jgray)
|
hudson (nicolas via jgray)
|
||||||
HBASE-3163 If we timeout PENDING_CLOSE and send another closeRegion RPC,
|
HBASE-3163 If we timeout PENDING_CLOSE and send another closeRegion RPC,
|
||||||
need to handle NSRE from RS (comes as a RemoteException)
|
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
|
IMPROVEMENTS
|
||||||
|
|
|
@ -124,7 +124,7 @@ public class MetaEditor {
|
||||||
HRegionInfo regionInfo, HServerInfo serverInfo)
|
HRegionInfo regionInfo, HServerInfo serverInfo)
|
||||||
throws IOException, ConnectException {
|
throws IOException, ConnectException {
|
||||||
HRegionInterface server = catalogTracker.waitForRootServerConnectionDefault();
|
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);
|
updateLocation(server, CatalogTracker.ROOT_REGION, regionInfo, serverInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue