This is an automated email from the ASF dual-hosted git repository.

dataroaring pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new 55178a7244c [chore](query) print query id when killed by timeout 
checker (#36868) (#37460)
55178a7244c is described below

commit 55178a7244c58c261dd16034b506551d1cb04f0d
Author: hui lai <[email protected]>
AuthorDate: Mon Jul 8 17:20:48 2024 +0800

    [chore](query) print query id when killed by timeout checker (#36868) 
(#37460)
    
    pick #36868
    
    ```
    2024-06-26 14:58:30,917 WARN (connect-scheduler-check-timer-0|92) 
[ConnectContext.checkTimeout():776] kill query timeout, remote: XXXX:XX, query 
timeout: 900000
    ```
    It is hard to know which query is killed when timeout, so it is
    necessary to print query id.
---
 fe/fe-core/src/main/java/org/apache/doris/qe/ConnectContext.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fe/fe-core/src/main/java/org/apache/doris/qe/ConnectContext.java 
b/fe/fe-core/src/main/java/org/apache/doris/qe/ConnectContext.java
index 315973bf64d..89d04a762ce 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/qe/ConnectContext.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/qe/ConnectContext.java
@@ -760,8 +760,8 @@ public class ConnectContext {
             //to ms
             long timeout = getExecTimeout() * 1000L;
             if (delta > timeout) {
-                LOG.warn("kill {} timeout, remote: {}, query timeout: {}",
-                        timeoutTag, 
getMysqlChannel().getRemoteHostPortString(), timeout);
+                LOG.warn("kill {} timeout, remote: {}, query timeout: {}, 
query id: {}",
+                        timeoutTag, 
getMysqlChannel().getRemoteHostPortString(), timeout, queryId);
                 killFlag = true;
             }
         }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to