You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by yi...@apache.org on 2024/02/19 11:04:38 UTC

(doris) branch branch-2.1 updated: [fix](segcompaction) enable segcompaction by default (#30810)

This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.1 by this push:
     new 9a708806e0e [fix](segcompaction) enable segcompaction by default (#30810)
9a708806e0e is described below

commit 9a708806e0e1dc43f0a556d3a3be928b0ffd3229
Author: Xin Liao <li...@126.com>
AuthorDate: Mon Feb 5 22:06:32 2024 +0800

    [fix](segcompaction) enable segcompaction by default (#30810)
---
 be/src/common/config.cpp                         | 2 +-
 docs/en/docs/admin-manual/config/be-config.md    | 2 +-
 docs/zh-CN/docs/admin-manual/config/be-config.md | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/be/src/common/config.cpp b/be/src/common/config.cpp
index b4cd28f5837..ad8f2aece43 100644
--- a/be/src/common/config.cpp
+++ b/be/src/common/config.cpp
@@ -937,7 +937,7 @@ DEFINE_String(be_node_role, "mix");
 // Hide the be config page for webserver.
 DEFINE_Bool(hide_webserver_config_page, "false");
 
-DEFINE_Bool(enable_segcompaction, "false");
+DEFINE_Bool(enable_segcompaction, "true");
 
 // Max number of segments allowed in a single segcompaction task.
 DEFINE_Int32(segcompaction_batch_size, "10");
diff --git a/docs/en/docs/admin-manual/config/be-config.md b/docs/en/docs/admin-manual/config/be-config.md
index 3fede52ee99..d364e1b7b56 100644
--- a/docs/en/docs/admin-manual/config/be-config.md
+++ b/docs/en/docs/admin-manual/config/be-config.md
@@ -614,7 +614,7 @@ BaseCompaction:546859:
 
 * Type: bool
 * Description: Enable to use segment compaction during loading to avoid -238 error
-* Default value: false
+* Default value: true
 
 #### `segcompaction_batch_size`
 
diff --git a/docs/zh-CN/docs/admin-manual/config/be-config.md b/docs/zh-CN/docs/admin-manual/config/be-config.md
index b759f3bb4e1..0a07e704450 100644
--- a/docs/zh-CN/docs/admin-manual/config/be-config.md
+++ b/docs/zh-CN/docs/admin-manual/config/be-config.md
@@ -628,7 +628,7 @@ BaseCompaction:546859:
 
 * 类型:bool
 * 描述:在导入时进行 segment compaction 来减少 segment 数量, 以避免出现写入时的 -238 错误
-* 默认值:false
+* 默认值:true
 
 #### `segcompaction_batch_size`
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org