dataroaring commented on code in PR #15832: URL: https://github.com/apache/doris/pull/15832#discussion_r1068880353
########## be/src/agent/task_worker_pool.cpp: ########## @@ -1693,4 +1697,44 @@ void TaskWorkerPool::_storage_update_storage_policy_worker_thread_callback() { } } +void TaskWorkerPool::_push_cooldown_conf_worker_thread_callback() { + while (_is_work) { + TAgentTaskRequest agent_task_req; + TPushCooldownConfReq push_cooldown_conf_req; + { + std::unique_lock<std::mutex> worker_thread_lock(_worker_thread_lock); + while (_is_work && _tasks.empty()) { + _worker_thread_condition_variable.wait(worker_thread_lock); + } + + agent_task_req = _tasks.front(); + push_cooldown_conf_req = agent_task_req.push_cooldown_conf; + _tasks.pop_front(); + } + for (auto cooldown_conf : push_cooldown_conf_req.cooldown_confs) { + int64_t tablet_id = cooldown_conf.tablet_id; + TabletSharedPtr tablet = + StorageEngine::instance()->tablet_manager()->get_tablet(tablet_id); + if (tablet.get() == nullptr) { + std::stringstream ss; + ss << "failed to get tablet. tablet_id=" << tablet_id; + LOG(WARNING) << ss.str(); Review Comment: We should continue rather than instead. -- 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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org