-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Unbounded memory usage of BatchGet
's cache
#19560
Comments
/label sig/transaction |
/assign @ichn-hu |
/unassign @ichn-hu |
Please edit this comment or add a new comment to complete the following informationBug1. Root Cause Analysis (RCA) (optional)The internal cache used by 2. Symptom (optional)TiDB OOM. 3. All Trigger Conditions (optional)Do a large amount of query in one transaction and leave it valid forever (without commit/rollback). 4. Workaround (optional)Find this session and kill it. 5. Affected versions[v4.0.0:v4.0.8] 6. Fixed versionsv4.0.9 |
Bug Report
The internal cache used by
BatchGet
need a size limit, it is OK to randomly discard some entry in it.1. Minimal reproduce step (Required)
Start a transaction, do a lot of batch get.
2. What did you expect to see? (Required)
Low memory usage.
3. What did you see instead (Required)
Unbounded memory usage.
4. What is your TiDB version? (Required)
v4.0, master
The text was updated successfully, but these errors were encountered: