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:
parent
2bc0e1ed3a
commit
23ee15f04e
|
@ -324,6 +324,7 @@ Release 0.21.0 - Unreleased
|
||||||
have HADOOP-6151 patch (Kannan Muthukkaruppan via Stack)
|
have HADOOP-6151 patch (Kannan Muthukkaruppan via Stack)
|
||||||
HBASE-2382 Don't rely on fs.getDefaultReplication() to roll HLogs
|
HBASE-2382 Don't rely on fs.getDefaultReplication() to roll HLogs
|
||||||
(Nicolas Spiegelberg via Stack)
|
(Nicolas Spiegelberg via Stack)
|
||||||
|
HBASE-2415 Disable META splitting in 0.20 (Todd Lipcon via Stack)
|
||||||
|
|
||||||
IMPROVEMENTS
|
IMPROVEMENTS
|
||||||
HBASE-1760 Cleanup TODOs in HTable
|
HBASE-1760 Cleanup TODOs in HTable
|
||||||
|
|
|
@ -1214,6 +1214,14 @@ public class Store implements HConstants, HeapSize {
|
||||||
if (!force && (storeSize < this.desiredMaxFileSize)) {
|
if (!force && (storeSize < this.desiredMaxFileSize)) {
|
||||||
return null;
|
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.
|
// Not splitable if we find a reference store file present in the store.
|
||||||
boolean splitable = true;
|
boolean splitable = true;
|
||||||
long maxSize = 0L;
|
long maxSize = 0L;
|
||||||
|
|
Loading…
Reference in New Issue