HBASE-8560 TestMasterShutdown failing in trunk 0.95/trunk -- "Unable to get data of znode /hbase/meta-region-server because node does not exist (not an error)"
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1483547 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1a131b9e3c
commit
4473041015
|
@ -801,6 +801,9 @@ MasterServices, Server {
|
|||
// Make sure meta assigned before proceeding.
|
||||
status.setStatus("Assigning Meta Region");
|
||||
assignMeta(status);
|
||||
// check if master is shutting down because above assignMeta could return even META isn't
|
||||
// assigned when master is shutting down
|
||||
if(this.stopped) return;
|
||||
|
||||
if (this.distributedLogReplay && oldMetaServerLocation != null
|
||||
&& previouslyFailedServers.contains(oldMetaServerLocation)) {
|
||||
|
@ -941,6 +944,7 @@ MasterServices, Server {
|
|||
this.assignmentManager.regionOnline(HRegionInfo.FIRST_META_REGIONINFO,
|
||||
this.catalogTracker.getMetaLocation());
|
||||
}
|
||||
|
||||
enableCatalogTables(Bytes.toString(HConstants.META_TABLE_NAME));
|
||||
LOG.info(".META. assigned=" + assigned + ", rit=" + rit + ", location="
|
||||
+ catalogTracker.getMetaLocation());
|
||||
|
@ -2059,7 +2063,7 @@ MasterServices, Server {
|
|||
serverShutdownHandlerEnabled = false;
|
||||
initialized = false;
|
||||
finishInitialization(status, true);
|
||||
return Boolean.TRUE;
|
||||
return !stopped;
|
||||
} finally {
|
||||
status.cleanup();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue