morningman commented on a change in pull request #2958: Auto Resume
RoutineLoadJob
URL: https://github.com/apache/incubator-doris/pull/2958#discussion_r382587032
##########
File path:
fe/src/main/java/org/apache/doris/load/routineload/RoutineLoadTaskScheduler.java
##########
@@ -130,10 +131,15 @@ private void scheduleOneTask(RoutineLoadTaskInfo
routineLoadTaskInfo) throws Exc
// allocate failed, push it back to the queue to wait next
scheduling
needScheduleTasksQueue.put(routineLoadTaskInfo);
}
- } catch (Exception e) {
+ } catch (UserException e) {
+ routineLoadManager.getJob(routineLoadTaskInfo.getJobId()).
+ updateState(JobState.PAUSED,
+ new ErrorReason(e.getErrorCode().getCode(),
e.getMessage()), false);
+ throw e;
+ }catch (Exception e) {
Review comment:
```suggestion
} catch (Exception e) {
```
----------------------------------------------------------------
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.
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]