From 23ee15f04e8b2099d256704e9b9c01bfc6810f4e Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Mon, 17 May 2010 21:27:49 +0000 Subject: [PATCH] HBASE-2415 Disable META splitting in 0.20; forward-port git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@945382 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES.txt | 1 + .../java/org/apache/hadoop/hbase/regionserver/Store.java | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/CHANGES.txt b/CHANGES.txt index 795ef7d4370..0d59e27c780 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -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 diff --git a/core/src/main/java/org/apache/hadoop/hbase/regionserver/Store.java b/core/src/main/java/org/apache/hadoop/hbase/regionserver/Store.java index 99fb21f6fac..cd0c486fd47 100644 --- a/core/src/main/java/org/apache/hadoop/hbase/regionserver/Store.java +++ b/core/src/main/java/org/apache/hadoop/hbase/regionserver/Store.java @@ -1214,6 +1214,14 @@ public class Store implements HConstants, HeapSize { 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;