Skip to content

Unbounded memory usage of BatchGet's cache #19560

Closed
@bobotu

Description

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

Activity

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

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions