yiguolei commented on code in PR #43212:
URL: https://github.com/apache/doris/pull/43212#discussion_r1827564757
##########
be/src/runtime/fragment_mgr.cpp:
##########
@@ -1034,10 +1050,55 @@ void FragmentMgr::cancel_worker() {
"Source frontend is not running or
restarted"));
}
- } while
(!_stop_background_threads_latch.wait_for(std::chrono::seconds(1)));
+ } while (!_stop_background_threads_latch.wait_for(
+
std::chrono::seconds(config::fragment_mgr_cancel_worker_interval_seconds)));
LOG(INFO) << "FragmentMgr cancel worker is going to exit.";
}
+void FragmentMgr::_check_brpc_available(const TNetworkAddress& network_address,
+ BrpcItem& brpc_item) {
+ const std::string message = "hello doris!";
+ std::string error_message;
+ int32_t failed_count = 0;
+ while (true) {
+ PHandShakeRequest request;
+ request.set_hello(message);
+ PHandShakeResponse response;
Review Comment:
should also set max try = 10
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]