This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.0 by this push:
new 13607471e09 branch-3.0: [fix](httpserver) Fix lsan check error when
stop libevent server #53081 (#53111)
13607471e09 is described below
commit 13607471e0930115340193d75f0d7d640ffc815b
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Sat Jul 12 11:03:32 2025 +0800
branch-3.0: [fix](httpserver) Fix lsan check error when stop libevent
server #53081 (#53111)
Cherry-picked from #53081
Co-authored-by: Xin Liao <[email protected]>
---
be/src/http/ev_http_server.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/be/src/http/ev_http_server.cpp b/be/src/http/ev_http_server.cpp
index 1bbd2c0e178..457cf0e0322 100644
--- a/be/src/http/ev_http_server.cpp
+++ b/be/src/http/ev_http_server.cpp
@@ -148,9 +148,9 @@ void EvHttpServer::stop() {
for (int i = 0; i < _num_workers; ++i) {
event_base_loopbreak(_event_bases[i].get());
}
- _event_bases.clear();
}
_workers->shutdown();
+ _event_bases.clear();
close(_server_fd);
_started = false;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]