caiconghui commented on code in PR #10711: URL: https://github.com/apache/doris/pull/10711#discussion_r926578048
########## be/src/olap/rowset/beta_rowset.cpp: ########## @@ -228,4 +228,21 @@ bool BetaRowset::check_file_exist() { return true; } +bool BetaRowset::check_current_rowset_segment() { + auto fs = _rowset_meta->fs(); + if (!fs) { + return false; + } + for (int seg_id = 0; seg_id < num_segments(); ++seg_id) { + auto seg_path = segment_file_path(seg_id); + std::shared_ptr<segment_v2::Segment> segment; + auto s = segment_v2::Segment::open(fs, seg_path, seg_id, _schema, &segment); + if (!s.ok()) { + LOG(WARNING) << "Beta rowset segment Check. segment not exist. file=" << seg_path; Review Comment: not ok always mean file not exist? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org