Skip to content

Commit

Permalink
[Enhancement] Add memory limit check when loading cloud native tablet…
Browse files Browse the repository at this point in the history
… segments (StarRocks#33185)

Signed-off-by: wyb <wybb86@gmail.com>
  • Loading branch information
wyb authored Oct 20, 2023
1 parent 444cc3a commit 4a2e46e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions be/src/storage/lake/rowset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,10 @@ Status Rowset::load_segments(std::vector<SegmentPtr>* segments, bool fill_cache)
}

Status Rowset::load_segments(std::vector<SegmentPtr>* segments, bool fill_data_cache, bool fill_metadata_cache) {
#ifndef BE_TEST
RETURN_IF_ERROR(tls_thread_status.mem_tracker()->check_mem_limit("LoadSegments"));
#endif

size_t footer_size_hint = 16 * 1024;
uint32_t seg_id = 0;
bool ignore_lost_segment = config::experimental_lake_ignore_lost_segment;
Expand Down

0 comments on commit 4a2e46e

Please sign in to comment.