Skip to content

Commit

Permalink
[fix](segcompaction) disable segcompaction by default (apache#28906)
Browse files Browse the repository at this point in the history
Signed-off-by: freemandealer <[email protected]>
  • Loading branch information
freemandealer committed Dec 22, 2023
1 parent e0bb7fa commit 4377646
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion be/src/common/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,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, "true");
DEFINE_Bool(enable_segcompaction, "false");

// Max number of segments allowed in a single segcompaction task.
DEFINE_Int32(segcompaction_batch_size, "10");
Expand Down
2 changes: 1 addition & 1 deletion docs/en/docs/admin-manual/config/be-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ BaseCompaction:546859:

* Type: bool
* Description: Enable to use segment compaction during loading to avoid -238 error
* Default value: true
* Default value: false

#### `segcompaction_batch_size`

Expand Down
2 changes: 1 addition & 1 deletion docs/zh-CN/docs/admin-manual/config/be-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ BaseCompaction:546859:

* 类型:bool
* 描述:在导入时进行 segment compaction 来减少 segment 数量, 以避免出现写入时的 -238 错误
* 默认值:true
* 默认值:false

#### `segcompaction_batch_size`

Expand Down

0 comments on commit 4377646

Please sign in to comment.