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

haven't track the memory usage of PointGet/BatchPointGet #21653

Open
zhaoxugang opened this issue Dec 10, 2020 · 0 comments · May be fixed by #21230
Open

haven't track the memory usage of PointGet/BatchPointGet #21653

zhaoxugang opened this issue Dec 10, 2020 · 0 comments · May be fixed by #21230
Labels
severity/moderate sig/execution SIG execution type/bug The issue is confirmed as a bug.

Comments

@zhaoxugang
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

1.drop table if exists t1;
2.create table t1(a int primary key);
3.set tidb_mem_quota_query=1;
4.select * from t1 where a = 1;
5.select /*+ MEMORY_QUOTA(0 GB) / * from t1 where a = 1;
6.select /
+ MEMORY_QUOTA(1 GB) */ * from t1 where a = 1;

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

after step 4
ERROR 1105 (HY000): Out Of Memory Quota![conn_id=2199023255555]
after step 5 or 6
+---+
| a |
+---+
| 1 |
+---+

3. What did you see instead (Required)

after step 4
+---+
| a |
+---+
| 1 |
+---+
after 5 or 6
+---+
| a |
+---+
| 1 |
+---+

4. What is your TiDB version? (Required)

master branch
| Release Version: None
Edition: Community
Git Commit Hash: None
Git Branch: None
UTC Build Time: None
GoVersion: go1.14.4
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306

@zhaoxugang zhaoxugang added the type/bug The issue is confirmed as a bug. label Dec 10, 2020
@morgo morgo changed the title haven't track the memroy usage of PointGet/BatchPointGet haven't track the memory usage of PointGet/BatchPointGet Dec 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/moderate sig/execution SIG execution type/bug The issue is confirmed as a bug.
Projects
None yet
2 participants