Skip to content

Conversation

@zhiqiang-hhhh
Copy link
Contributor

Make sure we can tell cancel reason from:

  1. user cancel
  2. timeout
  3. others
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

@doris-robot
Copy link

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@zhiqiang-hhhh
Copy link
Contributor Author

run buildall

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 36.03% (9339/25922)
Line Coverage: 27.62% (76734/277853)
Region Coverage: 26.42% (39406/149169)
Branch Coverage: 23.21% (20051/86398)
Coverage Report: http://coverage.selectdb-in.cc/coverage/c210be4dba2a02a20f203a98f20fa674769268d6_c210be4dba2a02a20f203a98f20fa674769268d6/report/index.html

@zhiqiang-hhhh zhiqiang-hhhh marked this pull request as draft October 14, 2024 08:56
@zhiqiang-hhhh
Copy link
Contributor Author

run buildall

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 36.03% (9340/25922)
Line Coverage: 27.61% (76703/277856)
Region Coverage: 26.42% (39404/149169)
Branch Coverage: 23.21% (20055/86398)
Coverage Report: http://coverage.selectdb-in.cc/coverage/61201fa0a38c5e0320d9d331d7cbc45e03ccd782_61201fa0a38c5e0320d9d331d7cbc45e03ccd782/report/index.html

@zhiqiang-hhhh
Copy link
Contributor Author

run buildall

@zhiqiang-hhhh zhiqiang-hhhh marked this pull request as ready for review October 15, 2024 02:04
@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@zhiqiang-hhhh
Copy link
Contributor Author

run buildall

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

3 similar comments
@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@yiguolei
Copy link
Contributor

run buildall

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Oct 15, 2024
@github-actions
Copy link
Contributor

PR approved by at least one committer and no changes requested.

@github-actions
Copy link
Contributor

PR approved by anyone and no changes requested.

@yiguolei
Copy link
Contributor

run buildall

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@zhiqiang-hhhh
Copy link
Contributor Author

run buildall

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 36.03% (9342/25927)
Line Coverage: 27.62% (76767/277960)
Region Coverage: 26.41% (39421/149248)
Branch Coverage: 23.20% (20057/86456)
Coverage Report: http://coverage.selectdb-in.cc/coverage/d898a1b110973c94d19201529343ff4fd7b8fa2b_d898a1b110973c94d19201529343ff4fd7b8fa2b/report/index.html

@yiguolei yiguolei merged commit abcba77 into apache:branch-2.1 Oct 15, 2024
yiguolei pushed a commit that referenced this pull request Oct 16, 2024
zhiqiang-hhhh added a commit to zhiqiang-hhhh/doris that referenced this pull request Oct 21, 2024
@yiguolei yiguolei mentioned this pull request Nov 6, 2024
@zhiqiang-hhhh zhiqiang-hhhh deleted the fix-cancel-msg branch November 6, 2024 06:12
yiguolei pushed a commit that referenced this pull request Nov 12, 2024
### What problem does this PR solve?

Related PR: #41798
Problem Summary:
#41798 does not set cancel reason if
query is timeout on fe.
morningman pushed a commit to morningman/doris that referenced this pull request Nov 21, 2024
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
```
@yiguolei yiguolei mentioned this pull request Jan 19, 2025
GoGoWen pushed a commit to GoGoWen/incubator-doris that referenced this pull request Sep 26, 2025
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
```

Conflicts:
	fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java
GoGoWen pushed a commit to GoGoWen/incubator-doris that referenced this pull request Sep 26, 2025
Related PR: apache#41798
Problem Summary:
apache#41798 does not set cancel reason if
query is timeout on fe.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. dev/2.1.7-merged reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants