zhiqiang-hhhh opened a new pull request, #41798:
URL: https://github.com/apache/doris/pull/41798

   Make sure we can tell cancel reason from:
   1. user cancel
   2. timeout
   3. others
   
   ```text
   mysql [demo]>set query_timeout=1;
   --------------
   set query_timeout=1
   --------------
   
   Query OK, 0 rows affected (0.00 sec)
   
   mysql [demo]>select sleep(5);
   --------------
   select sleep(5)
   --------------
   
   ERROR 1105 (HY000): errCode = 2, detailMessage = Timeout
   
   mysql [demo]>select sleep(5);
   --------------
   select sleep(5)
   --------------
   
   ^C^C -- sending "KILL QUERY 0" to server ...
   ^C -- query aborted
   ERROR 1105 (HY000): errCode = 2, detailMessage = cancel query by user from 
127.0.0.1:64208
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to