hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r931833 - in /hadoop/hbase/branches/0.20_pre_durability: CHANGES.txt src/java/org/apache/hadoop/hbase/regionserver/Store.java
Date Thu, 08 Apr 2010 08:46:10 GMT
Author: stack
Date: Thu Apr  8 08:46:10 2010
New Revision: 931833

URL: http://svn.apache.org/viewvc?rev=931833&view=rev
Log:
HBASE-2415 Disable META splitting in 0.20

Modified:
    hadoop/hbase/branches/0.20_pre_durability/CHANGES.txt
    hadoop/hbase/branches/0.20_pre_durability/src/java/org/apache/hadoop/hbase/regionserver/Store.java

Modified: hadoop/hbase/branches/0.20_pre_durability/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.20_pre_durability/CHANGES.txt?rev=931833&r1=931832&r2=931833&view=diff
==============================================================================
--- hadoop/hbase/branches/0.20_pre_durability/CHANGES.txt (original)
+++ hadoop/hbase/branches/0.20_pre_durability/CHANGES.txt Thu Apr  8 08:46:10 2010
@@ -56,6 +56,7 @@ Release 0.20.4 - Unreleased
    HBASE-2252  Mapping a very big table kills region servers
    HBASE-2277  Update branch to hadoop 0.20.2
    HBASE-2419  Remove from RS logs the fat NotServingRegionException stack
+   HBASE-2415  Disable META splitting in 0.20 (Todd Lipcon via Stack)
 
   NEW FEATURES
    HBASE-2257  [stargate] multiuser mode

Modified: hadoop/hbase/branches/0.20_pre_durability/src/java/org/apache/hadoop/hbase/regionserver/Store.java
URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.20_pre_durability/src/java/org/apache/hadoop/hbase/regionserver/Store.java?rev=931833&r1=931832&r2=931833&view=diff
==============================================================================
--- hadoop/hbase/branches/0.20_pre_durability/src/java/org/apache/hadoop/hbase/regionserver/Store.java
(original)
+++ hadoop/hbase/branches/0.20_pre_durability/src/java/org/apache/hadoop/hbase/regionserver/Store.java
Thu Apr  8 08:46:10 2010
@@ -1202,6 +1202,14 @@ public class Store implements HConstants
       if (!force && (storeSize < this.desiredMaxFileSize)) {
         return null;
       }
+
+      if (this.region.getRegionInfo().isMetaRegion()) {
+        if (force) {
+          LOG.warn("Cannot split meta regions in HBase 0.20");
+        }
+        return null;
+      }
+
       // Not splitable if we find a reference store file present in the store.
       boolean splitable = true;
       long maxSize = 0L;



Mime
View raw message