xinyiZzz commented on code in PR #39992: URL: https://github.com/apache/doris/pull/39992#discussion_r1732632498
########## be/src/runtime/routine_load/routine_load_task_executor.cpp: ########## @@ -311,6 +312,16 @@ Status RoutineLoadTaskExecutor::submit_task(const TRoutineLoadTask& task) { } } +bool RoutineLoadTaskExecutor::_reach_memory_limit() { + bool sys_avail_mem_less_than_warning_water_mark = + doris::GlobalMemoryArbitrator::sys_mem_available() <= + doris::MemInfo::sys_mem_available_warning_water_mark(); + bool reach_hard_limit = + MemTrackerLimiter::TypeMemSum[MemTrackerLimiter::Type::LOAD]->current_value() >= + _load_mem_limit; + return sys_avail_mem_less_than_warning_water_mark || reach_hard_limit; Review Comment: `sys_avail_mem_less_than_warning_water_mark` replace with `GlobalMemoryArbitrator::is_exceed_soft_mem_limit()` -- 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