This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.1 by this push:
new bd736841d4a [fix](schema cache) adjust the destruction order of
_tablet_schema_cache and storage engine (#29923)
bd736841d4a is described below
commit bd736841d4ab40561a06fe7b449e31cd666cdf12
Author: Luwei <[email protected]>
AuthorDate: Sat Jan 13 22:46:07 2024 +0800
[fix](schema cache) adjust the destruction order of _tablet_schema_cache
and storage engine (#29923)
---
be/src/runtime/exec_env_init.cpp | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/be/src/runtime/exec_env_init.cpp b/be/src/runtime/exec_env_init.cpp
index adfd525a950..ce87b565fc7 100644
--- a/be/src/runtime/exec_env_init.cpp
+++ b/be/src/runtime/exec_env_init.cpp
@@ -562,10 +562,6 @@ void ExecEnv::destroy() {
SAFE_SHUTDOWN(_send_report_thread_pool);
SAFE_SHUTDOWN(_send_batch_thread_pool);
- // Free resource after threads are stopped.
- // Some threads are still running, like threads created by
_new_load_stream_mgr ...
- SAFE_DELETE(_s3_buffer_pool);
- SAFE_DELETE(_tablet_schema_cache);
_deregister_metrics();
SAFE_DELETE(_load_channel_mgr);
@@ -587,6 +583,10 @@ void ExecEnv::destroy() {
// StorageEngine must be destoried before _cache_manager destory
SAFE_DELETE(_storage_engine);
+ // Free resource after threads are stopped.
+ // Some threads are still running, like threads created by
_new_load_stream_mgr ...
+ SAFE_DELETE(_tablet_schema_cache);
+
// _scanner_scheduler must be desotried before _storage_page_cache
SAFE_DELETE(_scanner_scheduler);
// _storage_page_cache must be destoried before _cache_manager
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]