File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff 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 ();
You can’t perform that action at this time.
0 commit comments