hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r945382 - in /hadoop/hbase/trunk: CHANGES.txt core/src/main/java/org/apache/hadoop/hbase/regionserver/Store.java
Date Mon, 17 May 2010 21:27:50 GMT
Author: stack
Date: Mon May 17 21:27:49 2010
New Revision: 945382

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

Modified:
    hadoop/hbase/trunk/CHANGES.txt
    hadoop/hbase/trunk/core/src/main/java/org/apache/hadoop/hbase/regionserver/Store.java

Modified: hadoop/hbase/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/CHANGES.txt?rev=945382&r1=945381&r2=945382&view=diff
==============================================================================
--- hadoop/hbase/trunk/CHANGES.txt (original)
+++ hadoop/hbase/trunk/CHANGES.txt Mon May 17 21:27:49 2010
@@ -324,6 +324,7 @@ Release 0.21.0 - Unreleased
                have HADOOP-6151 patch (Kannan Muthukkaruppan via Stack)
    HBASE-2382  Don't rely on fs.getDefaultReplication() to roll HLogs
                (Nicolas Spiegelberg via Stack)  
+   HBASE-2415  Disable META splitting in 0.20 (Todd Lipcon via Stack)
 
   IMPROVEMENTS
    HBASE-1760  Cleanup TODOs in HTable

Modified: hadoop/hbase/trunk/core/src/main/java/org/apache/hadoop/hbase/regionserver/Store.java
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/core/src/main/java/org/apache/hadoop/hbase/regionserver/Store.java?rev=945382&r1=945381&r2=945382&view=diff
==============================================================================
--- hadoop/hbase/trunk/core/src/main/java/org/apache/hadoop/hbase/regionserver/Store.java
(original)
+++ hadoop/hbase/trunk/core/src/main/java/org/apache/hadoop/hbase/regionserver/Store.java
Mon May 17 21:27:49 2010
@@ -1214,6 +1214,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