hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jeffr...@apache.org
Subject svn commit: r1510107 - /hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
Date Sun, 04 Aug 2013 07:13:33 GMT
Author: jeffreyz
Date: Sun Aug  4 07:13:33 2013
New Revision: 1510107

URL: http://svn.apache.org/r1510107
Log:
hbase-9096: Disable split during log replay

Modified:
    hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java

Modified: hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java?rev=1510107&r1=1510106&r2=1510107&view=diff
==============================================================================
--- hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
(original)
+++ hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
Sun Aug  4 07:13:33 2013
@@ -5217,6 +5217,12 @@ public class HRegion implements HeapSize
       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;
     }



Mime
View raw message