Skip to content

Commit

Permalink
[fix](routine load) fix invalid EOF tasks scheduling delay (#44949)
Browse files Browse the repository at this point in the history
Related PR: #39975
In the above PR, we introduce delay schedule EOF tasks to avoid too many
small transactions, but it is invalid, the pr fix the issue.
  • Loading branch information
sollhui authored Dec 6, 2024
1 parent 5ff94a1 commit 682be10
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ private void process() throws UserException, InterruptedException {
if (routineLoadTaskInfo.getIsEof()) {
RoutineLoadJob routineLoadJob = routineLoadManager.getJob(routineLoadTaskInfo.getJobId());
if (System.currentTimeMillis() - routineLoadTaskInfo.getLastScheduledTime()
< routineLoadJob.getMaxBatchIntervalS()) {
< routineLoadJob.getMaxBatchIntervalS() * 1000) {
needScheduleTasksQueue.addLast(routineLoadTaskInfo);
return;
}
Expand Down

0 comments on commit 682be10

Please sign in to comment.