HBASE-7504 -ROOT- may be offline forever after FullGC of RS (Chunhui)

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1431208 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
zjushch 2013-01-10 08:36:50 +00:00
parent f31d7f7eb2
commit f26e14a1b1
1 changed files with 6 additions and 0 deletions

View File

@ -107,6 +107,12 @@ public class ServerShutdownHandler extends EventHandler {
getLong("hbase.catalog.verification.timeout", 1000);
if (!this.server.getCatalogTracker().verifyRootRegionLocation(timeout)) {
this.services.getAssignmentManager().assignRoot();
} else if (serverName.equals(server.getCatalogTracker().getRootLocation())) {
throw new IOException("-ROOT- is onlined on the dead server "
+ serverName);
} else {
LOG.info("Skip assigning -ROOT-, because it is online on the "
+ server.getCatalogTracker().getRootLocation());
}
}