This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch branch-4.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-4.0 by this push:
     new 3dd613822fd branch-4.0: [fix] Check rs meta size during cool down 
progress #57368 (#59508)
3dd613822fd is described below

commit 3dd613822fde0b42b98d74b05873c5744f88ea25
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Sun Jan 4 18:59:02 2026 +0800

    branch-4.0: [fix] Check rs meta size during cool down progress #57368 
(#59508)
    
    Cherry-picked from #57368
    
    Co-authored-by: zhaorongsheng <[email protected]>
---
 be/src/olap/tablet.cpp | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/be/src/olap/tablet.cpp b/be/src/olap/tablet.cpp
index 3f1b5d70f06..d47f54dca38 100644
--- a/be/src/olap/tablet.cpp
+++ b/be/src/olap/tablet.cpp
@@ -2275,7 +2275,15 @@ Status Tablet::_follow_cooldowned_data() {
         LOG(INFO) << "cannot read cooldown meta: " << st;
         return Status::InternalError<false>("cannot read cooldown meta");
     }
-    DCHECK(cooldown_meta_pb.rs_metas_size() > 0);
+
+    if (cooldown_meta_pb.rs_metas_size() <= 0) {
+        LOG(WARNING)
+                << "Cooldown meta file exists but rs_metas is empty for tablet 
" << tablet_id()
+                << ". Cooldown meta id: " << 
cooldown_meta_pb.cooldown_meta_id()
+                << ". This may indicate a cooldown meta synchronization issue 
or an invalid file.";
+        return Status::InternalError<false>("Cooldown meta rs_metas is empty");
+    }
+
     if (_tablet_meta->cooldown_meta_id() == 
cooldown_meta_pb.cooldown_meta_id()) {
         // cooldowned rowsets are same, no need to follow
         return Status::OK();


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to