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

Fix the resource leak within the tests #13038

Open
Jackie-Jiang opened this issue Apr 30, 2024 · 1 comment
Open

Fix the resource leak within the tests #13038

Jackie-Jiang opened this issue Apr 30, 2024 · 1 comment
Assignees

Comments

@Jackie-Jiang
Copy link
Contributor

When running tests with java 21 with skip bytebuffers:true, we can detect resource leaks through the finalize() method within DirectMemory and MmapMemory class.
Here are example messages indicating resource leak in the test:

00:51:33.864 WARN [DirectMemory] [Finalizer] Direct memory of size: 4000 wasn't explicitly closed
00:51:33.864 WARN [MmapMemory] [Finalizer] Mmap section of size: 1618 wasn't explicitly closed

We should go over the test log and fix all the buffers not explicitly closed.

@abhioncbr
Copy link
Contributor

seems like this issue is also the same.

Please assign it to me; I will give it a try to fix it. Thanks

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