Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions be/src/olap/tablet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2273,6 +2273,15 @@ Status Tablet::_follow_cooldowned_data() {
LOG(INFO) << "cannot read cooldown meta: " << st;
return Status::InternalError<false>("cannot read cooldown meta");
}

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");
}

DCHECK(cooldown_meta_pb.rs_metas_size() > 0);
if (_tablet_meta->cooldown_meta_id() == cooldown_meta_pb.cooldown_meta_id()) {
// cooldowned rowsets are same, no need to follow
Expand Down