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

memory-quota: inl_hash_join doesn't raise error when the usage of memory exceeds #18070

Closed
lilinghai opened this issue Jun 17, 2020 · 1 comment · Fixed by #18509
Closed

memory-quota: inl_hash_join doesn't raise error when the usage of memory exceeds #18070

lilinghai opened this issue Jun 17, 2020 · 1 comment · Fixed by #18509
Labels
epic/memory-management priority/P0 The issue has P0 priority. severity/major sig/execution SIG execution type/bug The issue is confirmed as a bug.

Comments

@lilinghai
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

tide-config
oom-action = "cancel"

create table t1(a int, index(a));
create table t2(a int, index(a));
insert into t1 values(1),(2);
insert into t2 values(1),(1),(2),(2);
set @@tidb_mem_quota_query=1000;
select /*+ inl_hash_join(t1)*/ * from t1 join t2 on t1.a = t2.a;

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

ERROR 1105 (HY000): Out Of Memory Quota![conn_id=1]

3. What did you see instead (Required)

Empty set

4. Affected version (Required)

v4.0.0

5. Root Cause Analysis

@lilinghai lilinghai added the type/bug The issue is confirmed as a bug. label Jun 17, 2020
@g1eny0ung
Copy link

/label component/executor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
epic/memory-management priority/P0 The issue has P0 priority. severity/major sig/execution SIG execution type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants