Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: luohaha <[email protected]>
  • Loading branch information
luohaha committed Jul 18, 2024
1 parent 4cf7dac commit 75827f4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
3 changes: 1 addition & 2 deletions be/src/runtime/load_channel_mgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,7 @@ void LoadChannelMgr::open(brpc::Controller* cntl, const PTabletWriterOpenRequest
response->mutable_status()->set_status_code(TStatusCode::MEM_LIMIT_EXCEEDED);
response->mutable_status()->add_error_msgs(
"memory limit exceeded, please reduce load frequency or increase config "
"`load_process_max_memory_limit_percent` or `load_process_max_memory_limit_bytes` "
"or add more BE nodes");
"`load_process_max_memory_hard_limit_bytes` or add more BE nodes");
return;
}
}
Expand Down
3 changes: 1 addition & 2 deletions be/src/storage/delta_writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -427,8 +427,7 @@ Status DeltaWriter::write(const Chunk& chunk, const uint32_t* indexes, uint32_t
config::load_process_max_memory_hard_limit_percent)) {
return Status::MemoryLimitExceeded(
"memory limit exceeded, please reduce load frequency or increase config "
"`load_process_max_memory_limit_percent` or `load_process_max_memory_limit_bytes` "
"or add more BE nodes");
"`load_process_max_memory_hard_limit_bytes` or add more BE nodes");
}
_reset_mem_table();
}
Expand Down
3 changes: 1 addition & 2 deletions be/src/storage/lake/delta_writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,7 @@ Status DeltaWriterImpl::write(const Chunk& chunk, const uint32_t* indexes, uint3
config::load_process_max_memory_hard_limit_percent)) {
return Status::MemoryLimitExceeded(
"memory limit exceeded, please reduce load frequency or increase config "
"`load_process_max_memory_limit_percent` or `load_process_max_memory_limit_bytes` "
"or add more BE nodes");
"`load_process_max_memory_hard_limit_bytes` or add more BE nodes");
}
RETURN_IF_ERROR(reset_memtable());
}
Expand Down
10 changes: 5 additions & 5 deletions be/test/storage/utils_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ TEST_F(TestUtils, test_valid_decimal) {
TEST_F(TestUtils, test_is_tracker_hit_hard_limit) {
std::unique_ptr<MemTracker> tracker = std::make_unique<MemTracker>(1000, "test", nullptr);
tracker->consume(2000);
ASSERT_TRUE(!is_tracker_hit_hard_limit(tracker.get(), 30, 30));
ASSERT_TRUE(!is_tracker_hit_hard_limit(tracker.get(), 30, 40));
ASSERT_TRUE(!is_tracker_hit_hard_limit(tracker.get(), 30, 50));
ASSERT_TRUE(is_tracker_hit_hard_limit(tracker.get(), 30, 30));
ASSERT_TRUE(is_tracker_hit_hard_limit(tracker.get(), 30, 40));
ASSERT_TRUE(is_tracker_hit_hard_limit(tracker.get(), 30, 50));
ASSERT_TRUE(!is_tracker_hit_hard_limit(tracker.get(), 30, 60));
ASSERT_TRUE(is_tracker_hit_hard_limit(tracker.get(), 30, 65));
ASSERT_TRUE(is_tracker_hit_hard_limit(tracker.get(), 30, 70));
ASSERT_TRUE(!is_tracker_hit_hard_limit(tracker.get(), 30, 65));
ASSERT_TRUE(!is_tracker_hit_hard_limit(tracker.get(), 30, 70));
}

} // namespace starrocks

0 comments on commit 75827f4

Please sign in to comment.