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 dc438649d9b [bugfix](handshake) brpc handshake should not use light pool (#42115) (#42127) dc438649d9b is described below commit dc438649d9b544564185008eb2cabc826a4d1ee4 Author: yiguolei <676222...@qq.com> AuthorDate: Sat Oct 19 16:19:17 2024 +0800 [bugfix](handshake) brpc handshake should not use light pool (#42115) (#42127) The light pool may be full. Handshake is used to check the connection state of brpc. Should not be interfered by the thread pool logic. --------- pick #42115 ## Proposed changes Issue Number: close #xxx <!--Describe your changes.--> Co-authored-by: yiguolei <yiguo...@gmail.com> --- be/src/service/internal_service.cpp | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/be/src/service/internal_service.cpp b/be/src/service/internal_service.cpp index c54881ed82e..316c44d1edb 100644 --- a/be/src/service/internal_service.cpp +++ b/be/src/service/internal_service.cpp @@ -1684,17 +1684,11 @@ void PInternalServiceImpl::hand_shake(google::protobuf::RpcController* controlle const PHandShakeRequest* request, PHandShakeResponse* response, google::protobuf::Closure* done) { - bool ret = _light_work_pool.try_offer([request, response, done]() { - brpc::ClosureGuard closure_guard(done); - if (request->has_hello()) { - response->set_hello(request->hello()); - } - response->mutable_status()->set_status_code(0); - }); - if (!ret) { - offer_failed(response, done, _light_work_pool); - return; + brpc::ClosureGuard closure_guard(done); + if (request->has_hello()) { + response->set_hello(request->hello()); } + response->mutable_status()->set_status_code(0); } constexpr char HttpProtocol[] = "http://"; --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org