SaintBacchus commented on code in PR #17249:
URL: https://github.com/apache/doris/pull/17249#discussion_r1122623932


##########
fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java:
##########
@@ -1473,7 +1473,9 @@ private void beginTxn(String dbName, String tblName) 
throws UserException, TExce
             InterruptedException, ExecutionException, TimeoutException {
         TransactionEntry txnEntry = context.getTxnEntry();
         TTxnParams txnConf = txnEntry.getTxnConf();
-        long timeoutSecond = 
ConnectContext.get().getSessionVariable().getQueryTimeoutS();
+        ConnectContext ctx = ConnectContext.get();
+        int timeoutSecond = 
Math.max(ctx.getSessionVariable().getInsertTimeoutS(), ctx.getExecTimeout());
+        ctx.setExecTimeout(timeoutSecond);

Review Comment:
   yes, here no need to set



-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to