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

MemDB does not reuse free nodes #1375

Open
zyguan opened this issue Jul 2, 2024 · 1 comment
Open

MemDB does not reuse free nodes #1375

zyguan opened this issue Jul 2, 2024 · 1 comment

Comments

@zyguan
Copy link
Contributor

zyguan commented Jul 2, 2024

MemDB cannot reuse free nodes, which may lead to mem leak in some cases. If a DML writes many keys and it has been retried multiple times due to pessimistic lock error, MemDB would re-alloc nodes for each try. Refer to the following demo code, the mem usage of allocator keeps growing.

2024-07-02_151659

@zyguan zyguan changed the title MemDB do not reuse free nodes MemDB does not reuse free nodes Jul 5, 2024
@seiya-annie
Copy link

/report customer

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

No branches or pull requests

2 participants