Skip to content

[fix](doc) correct default_compression_type default value and valid values list#3746

Open
boluor wants to merge 1 commit into
apache:masterfrom
boluor:fix-default-compression-type-3463
Open

[fix](doc) correct default_compression_type default value and valid values list#3746
boluor wants to merge 1 commit into
apache:masterfrom
boluor:fix-default-compression-type-3463

Conversation

@boluor
Copy link
Copy Markdown
Contributor

@boluor boluor commented May 23, 2026

Summary

Fixes #3463. The fe-config doc for default_compression_type had two factual errors:

  1. Default value — doc said lz4 (before 4.0.3) / zstd (since 4.0.3). The actual FE Config in apache/doris is LZ4F (before 4.0.3) and ZSTD (since 4.0.3). The default was changed by [opt](compression) change default compression from lz4f to zstd doris#58923 (label dev/4.0.3-merged) — "opt change default compression from lz4f to zstd". LZ4 and LZ4F are different algorithms (raw block vs frame format), so the previous lz4 was simply wrong.

  2. Valid values — doc said "lz4, zstd". The Config.java description and PropertyAnalyzer.stringToCompressionType actually accept seven algorithms: LZ4, LZ4F, LZ4HC, ZLIB, ZSTD, SNAPPY, NONE (case-insensitive).

Source-of-truth references:

  • fe/fe-common/src/main/java/org/apache/doris/common/Config.java (default_compression_type field, both pre-58923 and post-58923 values)
  • fe/fe-core/src/main/java/org/apache/doris/common/util/PropertyAnalyzer.java#stringToCompressionType (accepted values)

Scope

Updated in 4 places (current/dev EN + zh, 4.x EN + zh):

  • docs/admin-manual/config/fe-config.md
  • i18n/zh-CN/docusaurus-plugin-content-docs/current/admin-manual/config/fe-config.md
  • versioned_docs/version-4.x/admin-manual/config/fe-config.md
  • i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/admin-manual/config/fe-config.md

The parameter does not exist in branch-2.1 or branch-3.0, so the 2.1 docs need no change.

Test plan

  • Each touched page shows the corrected default (LZ4F / ZSTD) and the full valid-values list
  • Dead-link check passes

…alues list

The fe-config doc for `default_compression_type` had two factual errors:

1. Default value: doc said `lz4` (before 4.0.3) / `zstd` (since 4.0.3). The
   actual FE Config (apache/doris) is `LZ4F` (before 4.0.3) and `ZSTD` (4.0.3+).
   The default was changed by apache/doris#58923 (label dev/4.0.3-merged) —
   "change default compression from lz4f to zstd". LZ4 and LZ4F are different
   algorithms (raw block vs frame format), so `lz4` was simply wrong.

2. Valid values: doc said "lz4, zstd". The Config.java description and
   `PropertyAnalyzer.stringToCompressionType` accept seven algorithms:
   LZ4, LZ4F, LZ4HC, ZLIB, ZSTD, SNAPPY, NONE (case-insensitive).

Update the doc to reflect the source-of-truth in apache/doris
`fe/fe-common/.../common/Config.java` for both current/dev and 4.x, EN + zh.

The parameter does not exist in branch-2.1 or branch-3.0, so no edit is
needed in the 2.1 docs; the 3.x doc set is missing this parameter entirely,
which is a separate gap.

Closes apache#3463
@boluor boluor mentioned this pull request May 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issue on docs

1 participant