HBASE-2559 Set hbase.hregion.majorcompaction to 0 to disable
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@946326 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7e51b33b00
commit
528b2c2d32
|
@ -649,6 +649,7 @@ Release 0.21.0 - Unreleased
|
|||
desired number of regions
|
||||
HBASE-2529 Make OldLogsCleaner easier to extend
|
||||
HBASE-2527 Add the ability to easily extend some HLog actions
|
||||
HBASE-2559 Set hbase.hregion.majorcompaction to 0 to disable
|
||||
|
||||
OPTIMIZATIONS
|
||||
HBASE-410 [testing] Speed up the test suite
|
||||
|
|
|
@ -838,7 +838,8 @@ public class Store implements HConstants, HeapSize {
|
|||
private boolean isMajorCompaction(final List<StoreFile> filesToCompact)
|
||||
throws IOException {
|
||||
boolean result = false;
|
||||
if (filesToCompact == null || filesToCompact.isEmpty()) {
|
||||
if (filesToCompact == null || filesToCompact.isEmpty() ||
|
||||
majorCompactionTime == 0) {
|
||||
return result;
|
||||
}
|
||||
long lowTimestamp = getLowestTimestamp(fs,
|
||||
|
|
|
@ -394,6 +394,7 @@
|
|||
<value>86400000</value>
|
||||
<description>The time (in miliseconds) between 'major' compactions of all
|
||||
HStoreFiles in a region. Default: 1 day.
|
||||
Set to 0 to disable automated major compactions.
|
||||
</description>
|
||||
</property>
|
||||
<property>
|
||||
|
|
Loading…
Reference in New Issue