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
This commit is contained in:
Michael Stack 2010-05-17 21:27:49 +00:00
parent 2bc0e1ed3a
commit 23ee15f04e
2 changed files with 9 additions and 0 deletions

View File

@ -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

View File

@ -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;