HBASE-4059 If a region is split during RS shutdown process, the daughter

regions are NOT made online by master



git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1143505 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Zhihong Yu 2011-07-06 17:19:32 +00:00
parent 8b2948bd62
commit be7cee5901
2 changed files with 8 additions and 1 deletions

View File

@ -146,6 +146,8 @@ Release 0.91.0 - Unreleased
all tests - TestFullLogReconstruction
HBASE-4051 [Coprocessors] Table coprocessor loaded twice when region is
initialized
HBASE-4059 If a region is split during RS shutdown process, the daughter
regions are NOT made online by master
IMPROVEMENTS
HBASE-3290 Max Compaction Size (Nicolas Spiegelberg via Stack)

View File

@ -173,7 +173,7 @@ public class ServerShutdownHandler extends EventHandler {
throw new IOException("Interrupted", e);
} catch (IOException ioe) {
LOG.info("Received exception accessing META during server shutdown of " +
serverName + ", retrying META read");
serverName + ", retrying META read", ioe);
}
}
@ -327,6 +327,11 @@ public class ServerShutdownHandler extends EventHandler {
LOG.warn("No serialized HRegionInfo in " + r);
return true;
}
byte [] value = r.getValue(HConstants.CATALOG_FAMILY,
HConstants.SERVER_QUALIFIER);
// See if daughter is assigned to some server
if (value == null) return false;
// Now see if we have gone beyond the daughter's startrow.
if (!Bytes.equals(daughter.getTableName(),
hri.getTableName())) {