hbase-9096: Disable split during log replay

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1510105 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
jeffreyz 2013-08-04 07:09:05 +00:00
parent d70d599161
commit 3fa804eaf7
1 changed files with 6 additions and 0 deletions

View File

@ -5194,6 +5194,12 @@ public class HRegion implements HeapSize { // , Writable{
return null; return null;
} }
// Can't split region which is in recovering state
if (this.isRecovering()) {
LOG.info("Cannot split region " + this.getRegionInfo().getEncodedName() + " in recovery.");
return null;
}
if (!splitPolicy.shouldSplit()) { if (!splitPolicy.shouldSplit()) {
return null; return null;
} }