From 06e5c6c9664ec650a637f0d9be429004bd51de0a Mon Sep 17 00:00:00 2001 From: Xinyi Zou Date: Thu, 28 Mar 2024 09:08:38 +0800 Subject: [PATCH] [fix](grace-exit) Stop incorrectly of reportwork cause heap use after free #32929 --- be/src/service/doris_main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/be/src/service/doris_main.cpp b/be/src/service/doris_main.cpp index a970a52fd03123..8750acbf63c3e3 100644 --- a/be/src/service/doris_main.cpp +++ b/be/src/service/doris_main.cpp @@ -615,6 +615,8 @@ int main(int argc, char** argv) { LOG(INFO) << "Be server stopped"; brpc_service.reset(nullptr); LOG(INFO) << "Brpc service stopped"; + service.reset(); + LOG(INFO) << "Backend Service stopped"; exec_env->destroy(); doris::ThreadLocalHandle::del_thread_local_if_count_is_zero(); LOG(INFO) << "Doris main exited.";