HBASE-25630 Set switch compaction after bulkload default as false (#3022)
Signed-off-by: Duo Zhang <zhangduo@apache.org>
This commit is contained in:
parent
c1dacfd577
commit
109bd24065
|
@ -595,7 +595,7 @@ possible configurations would overwhelm and obscure the important.
|
||||||
</property>
|
</property>
|
||||||
<property>
|
<property>
|
||||||
<name>hbase.compaction.after.bulkload.enable</name>
|
<name>hbase.compaction.after.bulkload.enable</name>
|
||||||
<value>true</value>
|
<value>false</value>
|
||||||
<description>Request Compaction after bulkload immediately.
|
<description>Request Compaction after bulkload immediately.
|
||||||
If bulkload is continuous, the triggered compactions may increase load,
|
If bulkload is continuous, the triggered compactions may increase load,
|
||||||
bring about performance side effect.</description>
|
bring about performance side effect.</description>
|
||||||
|
|
|
@ -7029,7 +7029,7 @@ public class HRegion implements HeapSize, PropagatingConfigurationObserver, Regi
|
||||||
}
|
}
|
||||||
|
|
||||||
isSuccessful = true;
|
isSuccessful = true;
|
||||||
if (conf.getBoolean(COMPACTION_AFTER_BULKLOAD_ENABLE, true)) {
|
if (conf.getBoolean(COMPACTION_AFTER_BULKLOAD_ENABLE, false)) {
|
||||||
// request compaction
|
// request compaction
|
||||||
familyWithFinalPath.keySet().forEach(family -> {
|
familyWithFinalPath.keySet().forEach(family -> {
|
||||||
HStore store = getStore(family);
|
HStore store = getStore(family);
|
||||||
|
|
|
@ -763,9 +763,10 @@ Maximum retries. This is a maximum number of iterations
|
||||||
Request Compaction after bulkload immediately.
|
Request Compaction after bulkload immediately.
|
||||||
If bulkload is continuous, the triggered compactions may increase load,
|
If bulkload is continuous, the triggered compactions may increase load,
|
||||||
bring about performance side effect.
|
bring about performance side effect.
|
||||||
|
(For HBase-2.x, the default value for "hbase.compaction.after.bulkload.enable" is true)
|
||||||
+
|
+
|
||||||
.Default
|
.Default
|
||||||
`true`
|
`false`
|
||||||
|
|
||||||
[[hbase.balancer.period
|
[[hbase.balancer.period
|
||||||
]]
|
]]
|
||||||
|
|
Loading…
Reference in New Issue