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

caches.go clientDown may have a memory leak problem #251

Open
Allyin opened this issue May 9, 2024 · 0 comments
Open

caches.go clientDown may have a memory leak problem #251

Allyin opened this issue May 9, 2024 · 0 comments

Comments

@Allyin
Copy link

Allyin commented May 9, 2024

I discovered a memory leak in a service that constantly creates, looks up, and deletes tables.
image
the code juse delete the client from array but not close the client.
the client's goroutine like receive_rpcs(contain one tmp buffer for conn) will always exist.
For example, a table is deleted, but regionsever is normal. Requesting again may trigger the shutdown logic, but I'm not sure.

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

No branches or pull requests

1 participant