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

hellostephen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 9140b21848f [fix] Check rs meta size during cool down progress (#57368)
9140b21848f is described below

commit 9140b21848f5b266170beaa0a740ee83ac0f0f9e
Author: zhaorongsheng <[email protected]>
AuthorDate: Wed Dec 31 14:31:36 2025 +0800

    [fix] Check rs meta size during cool down progress (#57368)
    
    ### What problem does this PR solve?
    
    Issue Number: close #57367
---
 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