Skip to content

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

Closed
@yibin87

Description

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 |

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    affects-6.5This bug affects the 6.5.x(LTS) versions.affects-7.1This bug affects the 7.1.x(LTS) versions.severity/majorsig/plannerSIG: Plannertype/bugThe issue is confirmed as a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions