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

Prepared "analyze table" statement cancelled due to exceeds "tidb_mem_quota_query" #44320

Closed
yibin87 opened this issue Jun 1, 2023 · 1 comment · Fixed by #44352
Closed
Labels

Comments

@yibin87
Copy link
Contributor

yibin87 commented Jun 1, 2023

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

  1. Use playground to build a tidb server
  2. Use "~/.tiup/bin/tiup bench tpch prepare -D tpch1 -T 4 -H 127.0.0.1 -P 4000 --sf 1" to prepare data
  3. run "set tidb_mem_quota_query = 50000000;" to set tidb_mem_quota_query to a small value
  4. run prepare stmt from "analyze table lineitem";
  5. run execute stmt;

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

The statement executes successfully.

3. What did you see instead (Required)

ERROR 1105 (HY000): Your query has been cancelled due to exceeding the allowed memory limit for a single SQL query. Please try narrowing your query scope or increase the tidb_mem_quota_query limit and try again.[conn=1833862249828057511]

4. What is your TiDB version? (Required)

| Release Version: v7.2.0-alpha
Edition: Community
Git Commit Hash: 65d5ef2
Git Branch: heads/refs/tags/v7.2.0-alpha
UTC Build Time: 2023-05-31 02:32:04
GoVersion: go1.20.3
Race Enabled: false
TiKV Min Version: 6.2.0-alpha
Check Table Before Drop: false
Store: tikv |

@yibin87 yibin87 added the type/bug The issue is confirmed as a bug. label Jun 1, 2023
@yibin87
Copy link
Contributor Author

yibin87 commented Jun 1, 2023

Issues report from customers who require hotfix.

@ti-chi-bot ti-chi-bot bot added may-affects-5.1 This bug maybe affects 5.1.x versions. may-affects-5.2 This bug maybe affects 5.2.x versions. may-affects-5.3 This bug maybe affects 5.3.x versions. may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-6.1 may-affects-6.5 may-affects-7.1 labels Jun 1, 2023
@seiya-annie seiya-annie added the sig/execution SIG execution label Jun 1, 2023
@XuHuaiyu XuHuaiyu added sig/planner SIG: Planner and removed sig/execution SIG execution labels Jun 1, 2023
@chrysan chrysan added affects-6.5 affects-6.6 affects-7.0 affects-7.1 and removed may-affects-5.1 This bug maybe affects 5.1.x versions. may-affects-5.2 This bug maybe affects 5.2.x versions. may-affects-5.3 This bug maybe affects 5.3.x versions. may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-6.1 may-affects-6.5 may-affects-7.1 affects-6.6 affects-7.0 labels Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants