From 6a0379e4ffe362ddd9c00e4ebce13c8c0e479db3 Mon Sep 17 00:00:00 2001 From: zhaorongsheng Date: Wed, 31 Dec 2025 14:31:36 +0800 Subject: [PATCH] [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 3f1b5d70f06a83..d47f54dca38072 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("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("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();