Skip to content

Commit 3dd6138

Browse files
branch-4.0: [fix] Check rs meta size during cool down progress #57368 (#59508)
Cherry-picked from #57368 Co-authored-by: zhaorongsheng <[email protected]>
1 parent c5214aa commit 3dd6138

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

be/src/olap/tablet.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2275,7 +2275,15 @@ Status Tablet::_follow_cooldowned_data() {
22752275
LOG(INFO) << "cannot read cooldown meta: " << st;
22762276
return Status::InternalError<false>("cannot read cooldown meta");
22772277
}
2278-
DCHECK(cooldown_meta_pb.rs_metas_size() > 0);
2278+
2279+
if (cooldown_meta_pb.rs_metas_size() <= 0) {
2280+
LOG(WARNING)
2281+
<< "Cooldown meta file exists but rs_metas is empty for tablet " << tablet_id()
2282+
<< ". Cooldown meta id: " << cooldown_meta_pb.cooldown_meta_id()
2283+
<< ". This may indicate a cooldown meta synchronization issue or an invalid file.";
2284+
return Status::InternalError<false>("Cooldown meta rs_metas is empty");
2285+
}
2286+
22792287
if (_tablet_meta->cooldown_meta_id() == cooldown_meta_pb.cooldown_meta_id()) {
22802288
// cooldowned rowsets are same, no need to follow
22812289
return Status::OK();

0 commit comments

Comments
 (0)