Skip to content

Commit 34be474

Browse files
branch-4.0: [fix](coordinator) prefer to cancel(Timeout) than cancel(Finished) #58448 (#58452)
Cherry-picked from #58448 Co-authored-by: 924060929 <[email protected]>
1 parent e967e78 commit 34be474

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

fe/fe-core/src/main/java/org/apache/doris/qe/runtime/QueryProcessor.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
package org.apache.doris.qe.runtime;
1919

20+
import org.apache.doris.common.QueryTimeoutException;
2021
import org.apache.doris.common.Status;
2122
import org.apache.doris.common.UserException;
2223
import org.apache.doris.common.util.DebugUtil;
@@ -132,6 +133,8 @@ public RowBatch getNext() throws UserException, InterruptedException, TException
132133
tryFinishSchedule();
133134
}
134135
return resultBatch;
136+
} catch (QueryTimeoutException e) {
137+
throw e;
135138
} catch (Throwable t) {
136139
tryFinishSchedule();
137140
throw t;

0 commit comments

Comments
 (0)