This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-4.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-4.1 by this push:
new d63f2c620ef branch-4.1:[improvement](file-cache) Enable file cache by
default. (#66684)
d63f2c620ef is described below
commit d63f2c620eff82f6861c062123fffc5849800f94
Author: daidai <[email protected]>
AuthorDate: Tue Sep 15 10:29:16 2026 +0800
branch-4.1:[improvement](file-cache) Enable file cache by default. (#66684)
### What problem does this PR solve?
Problem Summary:
Enable file cache by default.
### Release note
None
### Check List (For Author)
- Test <!-- At least one of them must be included. -->
- [ ] Regression test
- [ ] Unit Test
- [ ] Manual test (add detailed scripts or steps below)
- [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
- [ ] Previous test can cover this change.
- [ ] No code files have been changed.
- [ ] Other reason <!-- Add your reason? -->
- Behavior changed:
- [ ] No.
- [ ] Yes. <!-- Explain the behavior change -->
- Does this need documentation?
- [ ] No.
- [ ] Yes. <!-- Add document PR link here. eg:
https://github.com/apache/doris-website/pull/1214 -->
### Check List (For Reviewer who merge this PR)
- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR
should merge into -->
---
be/src/common/config.cpp | 2 +-
fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/be/src/common/config.cpp b/be/src/common/config.cpp
index 16efb653f28..0bb1fde8678 100644
--- a/be/src/common/config.cpp
+++ b/be/src/common/config.cpp
@@ -1207,7 +1207,7 @@ DEFINE_Validator(variant_storage_parse_mode,
[](const int config) -> bool { return config >= 0 && config
<= 2; });
// block file cache
-DEFINE_Bool(enable_file_cache, "false");
+DEFINE_Bool(enable_file_cache, "true");
// ATTENTION: For test only. Keep this enabled in production.
// Whether S3 storage write paths populate file cache while writing data to
object storage.
// Disable this for tests that need load and compaction output to bypass file
cache while keeping
diff --git a/fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java
b/fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java
index fd719d84b4d..c10bebc476a 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java
@@ -2394,7 +2394,7 @@ public class SessionVariable implements Serializable,
Writable {
+ "如果 be.conf 中 enable_file_cache=false,该 BE 节点的 file
cache 处于禁用状态。",
"Set wether to use file cache. This variable takes effect only if
the BE config enable_file_cache=true. "
+ "The cache is not used when BE config
enable_file_cache=false."})
- public boolean enableFileCache = false;
+ public boolean enableFileCache = true;
// Specify base path for file cache, or chose a random path.
@VariableMgr.VarAttr(name = FILE_CACHE_BASE_PATH, needForward = true,
description = {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]