File tree 1 file changed +4
-4
lines changed
fe/fe-core/src/main/java/org/apache/doris/nereids/jobs/scheduler
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -34,11 +34,11 @@ public void executeJobPool(ScheduleContext scheduleContext) {
34
34
CascadesContext context = (CascadesContext ) scheduleContext ;
35
35
SessionVariable sessionVariable = context .getConnectContext ().getSessionVariable ();
36
36
while (!pool .isEmpty ()) {
37
+ long elapsedS = context .getStatementContext ().getStopwatch ().elapsed (TimeUnit .MILLISECONDS ) / 1000 ;
37
38
if (sessionVariable .enableNereidsTimeout
38
- && context .getStatementContext ().getStopwatch ().elapsed (TimeUnit .MILLISECONDS )
39
- > sessionVariable .nereidsTimeoutSecond * 1000L ) {
40
- throw new DoNotFallbackException (
41
- "Nereids cost too much time ( > " + sessionVariable .nereidsTimeoutSecond + "s )" );
39
+ && elapsedS > sessionVariable .nereidsTimeoutSecond ) {
40
+ throw new DoNotFallbackException (String .format ("Nereids cost too much time ( %ds > %ds" ,
41
+ elapsedS , sessionVariable .nereidsTimeoutSecond ));
42
42
}
43
43
Job job = pool .pop ();
44
44
job .execute ();
You can’t perform that action at this time.
0 commit comments