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:
parent
d70d599161
commit
3fa804eaf7
|
@ -5194,6 +5194,12 @@ public class HRegion implements HeapSize { // , Writable{
|
|||
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()) {
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue