This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 3a86ab6c035 [fix](flush) Fix the issue of incorrect calculation of the
number of flush threads in cloud mode (#59524)
3a86ab6c035 is described below
commit 3a86ab6c035fd33b64f8d92e1ca41222cfa7de6f
Author: Refrain <[email protected]>
AuthorDate: Wed Jan 21 02:13:39 2026 +0800
[fix](flush) Fix the issue of incorrect calculation of the number of flush
threads in cloud mode (#59524)
### What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx https://github.com/apache/doris/pull/38789
---
be/src/runtime/workload_group/workload_group.cpp | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/be/src/runtime/workload_group/workload_group.cpp
b/be/src/runtime/workload_group/workload_group.cpp
index 6ab5c82806b..9b507bbd537 100644
--- a/be/src/runtime/workload_group/workload_group.cpp
+++ b/be/src/runtime/workload_group/workload_group.cpp
@@ -422,7 +422,12 @@ WorkloadGroupInfo WorkloadGroupInfo::parse_topic_info(
int num_disk = 1;
int num_cpus = 1;
#ifndef BE_TEST
- num_disk = ExecEnv::GetInstance()->storage_engine().get_disk_num();
+ if (config::is_cloud_mode()) {
+ // In cloud mode, use cache disk count instead of data disk count
+ num_disk =
cast_set<int>(io::FileCacheFactory::instance()->get_cache_instance_size());
+ } else {
+ num_disk = ExecEnv::GetInstance()->storage_engine().get_disk_num();
+ }
num_cpus = std::thread::hardware_concurrency();
#endif
num_disk = std::max(1, num_disk);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]