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

TiDBContext.stmt don't have an eviction mechanism #37002

Open
ChenPeng2013 opened this issue Aug 9, 2022 · 0 comments
Open

TiDBContext.stmt don't have an eviction mechanism #37002

ChenPeng2013 opened this issue Aug 9, 2022 · 0 comments
Assignees
Labels
epic/plan-cache sig/planner SIG: Planner type/enhancement The issue or PR belongs to an enhancement.

Comments

@ChenPeng2013
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

infinitely create prepare stmt

create table t(a int);
for i in (10000000):
    prepare stmt+str(i) from "select * from t";

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

3. What did you see instead (Required)

tidb will oom
FaA4e3MYcz

4. What is your TiDB version? (Required)

Release Version: v6.2.0-alpha-516-g7cc526a
Edition: Community
Git Commit Hash: 7cc526a9a52256c0e0bd49bb166063fa5b265f2e
Git Branch: release-6.2
UTC Build Time: 2022-08-09 01:03:36
GoVersion: go1.18.2
Race Enabled: false
TiKV Min Version: 6.2.0-alpha
Check Table Before Drop: false
@ChenPeng2013 ChenPeng2013 added type/bug The issue is confirmed as a bug. sig/execution SIG execution severity/minor labels Aug 9, 2022
@qw4990 qw4990 self-assigned this Aug 18, 2022
@qw4990 qw4990 added sig/planner SIG: Planner epic/plan-cache type/enhancement The issue or PR belongs to an enhancement. and removed type/bug The issue is confirmed as a bug. severity/minor sig/execution SIG execution labels Aug 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
epic/plan-cache sig/planner SIG: Planner type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
Development

No branches or pull requests

2 participants