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 5dfcabf1de4 branch-3.0: [fix](cloud) fix filecache warmup crash due to 
spurious wakeup #48623 (#48654)
5dfcabf1de4 is described below

commit 5dfcabf1de4508e42ae87b2c8d516148ab152a73
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Mon Mar 10 14:52:34 2025 +0800

    branch-3.0: [fix](cloud) fix filecache warmup crash due to spurious wakeup 
#48623 (#48654)
    
    Cherry-picked from #48623
    
    Co-authored-by: zhengyu <zhangzhen...@selectdb.com>
---
 be/src/cloud/cloud_warm_up_manager.cpp | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/be/src/cloud/cloud_warm_up_manager.cpp 
b/be/src/cloud/cloud_warm_up_manager.cpp
index 06d6df11dc4..58b5711d997 100644
--- a/be/src/cloud/cloud_warm_up_manager.cpp
+++ b/be/src/cloud/cloud_warm_up_manager.cpp
@@ -66,10 +66,17 @@ void CloudWarmUpManager::handle_jobs() {
         std::shared_ptr<JobMeta> cur_job = nullptr;
         {
             std::unique_lock lock(_mtx);
-            _cond.wait(lock, [this]() { return _closed || 
!_pending_job_metas.empty(); });
+            while (!_closed && _pending_job_metas.empty()) {
+                _cond.wait(lock);
+            }
             if (_closed) break;
             cur_job = _pending_job_metas.front();
         }
+
+        if (!cur_job) {
+            LOG_WARNING("Warm up job is null");
+            continue;
+        }
         for (int64_t tablet_id : cur_job->tablet_ids) {
             if (_cur_job_id == 0) { // The job is canceled
                 break;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to