github-actions[bot] commented on code in PR #62481:
URL: https://github.com/apache/doris/pull/62481#discussion_r3086599574
##########
fe/fe-core/src/main/java/org/apache/doris/load/routineload/RoutineLoadTaskScheduler.java:
##########
@@ -322,6 +322,12 @@ private void submitTask(long beId, TRoutineLoadTask tTask)
throws LoadException
throw new LoadException("MEM_LIMIT_EXCEEDED");
}
+ if
(DebugPointUtil.isEnable("FE.ROUTINE_LOAD_TASK_SUBMIT_FAILED.TOO_MANY_TASKS")) {
Review Comment:
Injecting `TOO_MANY_TASKS` here is not equivalent to the real path. In
production, BE returns `TOO_MANY_TASKS` from
`RoutineLoadTaskExecutor::submit_task()` before the task is admitted. Here the
RPC has already returned `OK`, so the BE may already be executing the task
while FE goes into `handleSubmitTaskFailure()`, clears `beId`, and starts
timeout-based recovery. That makes the new regression case cover a different
lifecycle from the real rejection path and it can pass even if the original
task was actually accepted.
Please move the debug injection before the RPC, or synthesize a non-OK
`TStatusCode.TOO_MANY_TASKS` result so the FE exercises the real branch.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]