You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by yi...@apache.org on 2024/01/13 15:36:38 UTC

(doris) 01/01: [fix](schema cache) adjust the destruction order of _tablet_schema_cache and storage engine (#29923)

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

commit 60f6436f26cc9c7290ec9d5bab74ad6d1874c448
Author: Luwei <81...@qq.com>
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..384b5260aec 100644
--- a/be/src/runtime/exec_env_init.cpp
+++ b/be/src/runtime/exec_env_init.cpp
@@ -561,11 +561,7 @@ void ExecEnv::destroy() {
     SAFE_SHUTDOWN(_lazy_release_obj_pool);
     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: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org