Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can not kill the session while query with sleep #44675

Closed
aytrack opened this issue Jun 14, 2023 · 3 comments
Closed

can not kill the session while query with sleep #44675

aytrack opened this issue Jun 14, 2023 · 3 comments
Assignees
Labels
report/community The community has encountered this bug. severity/moderate sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.

Comments

@aytrack
Copy link
Contributor

aytrack commented Jun 14, 2023

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

it comes from https://asktug.com/t/topic/1007504

  1. init data
create table t(a int, b int);
insert into t values (1,1); -- insert more data
select sleep(1), a.* from t a;
  1. kill the query session

2. What did you expect to see? (Required)

killed immediately

3. What did you see instead (Required)

  1. can not kill the query immediately
  2. use a lot mem and can't affected by tidb_mem_quota_query

4. What is your TiDB version? (Required)

v6.5.2, v7.1.0

@aytrack aytrack added type/bug The issue is confirmed as a bug. sig/sql-infra SIG: SQL Infra severity/moderate labels Jun 14, 2023
@Defined2014
Copy link
Contributor

I think it same as #39449. We only check kill status in Next() function.

@Defined2014
Copy link
Contributor

Defined2014 commented Jun 16, 2023

For memTracker, it also checked memory/error every batches (like 1024 lines each batch), just like KILL.

@seiya-annie
Copy link

/found community

@ti-chi-bot ti-chi-bot bot added the report/community The community has encountered this bug. label Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
report/community The community has encountered this bug. severity/moderate sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.
Projects
None yet
Development

No branches or pull requests

3 participants