Skip to content

Commit bf6359a

Browse files
author
niuyulin
committed
HBASE-25630 Set switch compaction after bulkload default as false
1 parent 830d289 commit bf6359a

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

hbase-common/src/main/resources/hbase-default.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ possible configurations would overwhelm and obscure the important.
595595
</property>
596596
<property>
597597
<name>hbase.compaction.after.bulkload.enable</name>
598-
<value>true</value>
598+
<value>false</value>
599599
<description>Request Compaction after bulkload immediately.
600600
If bulkload is continuous, the triggered compactions may increase load,
601601
bring about performance side effect.</description>

hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7029,7 +7029,7 @@ public Map<byte[], List<Path>> bulkLoadHFiles(Collection<Pair<byte[], String>> f
70297029
}
70307030

70317031
isSuccessful = true;
7032-
if (conf.getBoolean(COMPACTION_AFTER_BULKLOAD_ENABLE, true)) {
7032+
if (conf.getBoolean(COMPACTION_AFTER_BULKLOAD_ENABLE, false)) {
70337033
// request compaction
70347034
familyWithFinalPath.keySet().forEach(family -> {
70357035
HStore store = getStore(family);

src/main/asciidoc/_chapters/hbase-default.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,9 +763,10 @@ Maximum retries. This is a maximum number of iterations
763763
Request Compaction after bulkload immediately.
764764
If bulkload is continuous, the triggered compactions may increase load,
765765
bring about performance side effect.
766+
(During HBase-2.0, "hbase.compaction.after.bulkload.enable" default value is true)
766767
+
767768
.Default
768-
`true`
769+
`false`
769770

770771
[[hbase.balancer.period
771772
]]

0 commit comments

Comments
 (0)