liaoxin01 commented on code in PR #47528:
URL: https://github.com/apache/doris/pull/47528#discussion_r1948954564


##########
fe/fe-core/src/main/java/org/apache/doris/load/routineload/ScheduleRule.java:
##########
@@ -76,16 +76,18 @@ public static boolean isNeedAutoSchedule(RoutineLoadJob 
jobRoutine) {
             } else {
                 long current = System.currentTimeMillis();
                 if (current - jobRoutine.latestResumeTimestamp < 
Config.period_of_auto_resume_min * 60000L) {
-                    long autoResumeIntervalTimeSec =
-                            Math.min((long) Math.pow(2, 
jobRoutine.autoResumeCount) * BACK_OFF_BASIC_TIME_SEC,
-                                    MAX_BACK_OFF_TIME_SEC);
+                    long autoResumeIntervalTimeSec = 
jobRoutine.autoResumeCount < 5

Review Comment:
   please add ut for this function.



-- 
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

Reply via email to