-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Stop incorrectly of reportwork cause heap use after free #32205
Conversation
Thank you for your contribution to Apache Doris. |
run buildall |
TeamCity be ut coverage result: |
TPC-H: Total hot run time: 37976 ms
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do not format this file
be/src/service/doris_main.cpp
Outdated
@@ -498,20 +499,22 @@ int main(int argc, char** argv) { | |||
doris::ThriftRpcHelper::setup(exec_env); | |||
// 1. thrift server with be_port | |||
std::unique_ptr<doris::ThriftServer> be_server; | |||
|
|||
std::shared_ptr<doris::BackendService> service = std::make_shared<doris::BackendService>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why you move this here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
confirmed
15c32cc
to
f5cfb37
Compare
run buildall |
TPC-H: Total hot run time: 38526 ms
|
TeamCity be ut coverage result: |
run buildall |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR approved by anyone and no changes requested. |
be/src/service/doris_main.cpp
Outdated
if (doris::config::is_cloud_mode()) { | ||
EXIT_IF_ERROR(doris::CloudBackendService::create_service( | ||
exec_env->storage_engine().to_cloud(), exec_env, doris::config::be_port, | ||
&be_server)); | ||
} else { | ||
EXIT_IF_ERROR(doris::BackendService::create_service(exec_env->storage_engine().to_local(), | ||
exec_env, doris::config::be_port, | ||
&be_server)); | ||
&be_server, service)); | ||
} | ||
|
||
status = be_server->start(); | ||
if (!status.ok()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use function do reduce the repeat code
TPC-H: Total hot run time: 38155 ms
|
TeamCity be ut coverage result: |
ab1c298
to
236a352
Compare
|
run buildall |
TeamCity be ut coverage result: |
TPC-H: Total hot run time: 38019 ms
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR approved by at least one committer and no changes requested. |
Proposed changes
Issue Number: close #xxx
When a port conflict occurs, an incorrect exit is caused
Further comments