This is an automated email from the ASF dual-hosted git repository.
yiguolei 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 8a491e7b1d7 Fix workload scheduler start too early may cause npe
(#29258)
8a491e7b1d7 is described below
commit 8a491e7b1d7d3b2c966ab332c226128dc07fc522
Author: wangbo <[email protected]>
AuthorDate: Thu Dec 28 22:41:42 2023 +0800
Fix workload scheduler start too early may cause npe (#29258)
---
be/src/runtime/exec_env_init.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/be/src/runtime/exec_env_init.cpp b/be/src/runtime/exec_env_init.cpp
index 48d229b9e21..c204ead069d 100644
--- a/be/src/runtime/exec_env_init.cpp
+++ b/be/src/runtime/exec_env_init.cpp
@@ -196,9 +196,6 @@ Status ExecEnv::_init(const std::vector<StorePath>&
store_paths,
.set_max_queue_size(1000000)
.build(&_lazy_release_obj_pool));
- _workload_sched_mgr = new WorkloadSchedPolicyMgr();
- _workload_sched_mgr->start(this);
-
init_file_cache_factory();
RETURN_IF_ERROR(init_pipeline_task_scheduler());
_task_group_manager = new taskgroup::TaskGroupManager();
@@ -275,6 +272,9 @@ Status ExecEnv::_init(const std::vector<StorePath>&
store_paths,
return st;
}
+ _workload_sched_mgr = new WorkloadSchedPolicyMgr();
+ _workload_sched_mgr->start(this);
+
_s_ready = true;
return Status::OK();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]