morningman commented on a change in pull request #665: Change routine load task
sheduler interval to 0
URL: https://github.com/apache/incubator-doris/pull/665#discussion_r260566105
##########
File path:
fe/src/main/java/org/apache/doris/load/routineload/RoutineLoadJob.java
##########
@@ -606,4 +610,23 @@ public void stop() {
writeUnlock();
}
}
+
+ public void rescheduler() {
+ if (needRescheduler()) {
+ writeLock();
+ try {
+ if (state == JobState.RUNNING) {
+ state = JobState.NEED_SCHEDULER;
+ routineLoadTaskInfoList.clear();
+ needSchedulerTaskInfoList.clear();
+ }
+ } finally {
+ writeUnlock();
+ }
+ }
+ }
+
+ protected boolean needRescheduler() {
Review comment:
needRescheduler -> needReschedule
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]