diff --git a/be/src/olap/tablet.cpp b/be/src/olap/tablet.cpp index 373c2d2963c048..0432e9b6557f02 100644 --- a/be/src/olap/tablet.cpp +++ b/be/src/olap/tablet.cpp @@ -2230,7 +2230,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();