Skip to content

Commit 6a0379e

Browse files
zhaorongshengYour Name
authored andcommitted
[fix] Check rs meta size during cool down progress (#57368)
### What problem does this PR solve? Issue Number: close #57367
1 parent 91d7bcb commit 6a0379e

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)