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

memory leak, buffer not release in ObjectWriter #381

Closed
SCNieh opened this issue Oct 24, 2023 · 0 comments · Fixed by AutoMQ/automq-for-rocketmq#446
Closed

memory leak, buffer not release in ObjectWriter #381

SCNieh opened this issue Oct 24, 2023 · 0 comments · Fixed by AutoMQ/automq-for-rocketmq#446
Assignees
Labels
bug Something isn't working

Comments

@SCNieh
Copy link
Contributor

SCNieh commented Oct 24, 2023

[2023-10-24 15:11:25,568] ERROR LEAK: ByteBuf.release() was not called before it's garbage-collected. See https://netty.io/wiki/reference-counted-objects.html for more information.
Recent access records:
Created at:
io.netty.buffer.AbstractByteBufAllocator.compositeDirectBuffer(AbstractByteBufAllocator.java:224)
com.automq.stream.s3.DirectByteBufAlloc.compositeByteBuffer(DirectByteBufAlloc.java:29)
com.automq.stream.s3.operator.ProxyWriter$ObjectWriter.(ProxyWriter.java:104)
com.automq.stream.s3.operator.ProxyWriter.(ProxyWriter.java:37)
com.automq.stream.s3.operator.ProxyWriter.(ProxyWriter.java:48)
com.automq.stream.s3.operator.DefaultS3Operator.writer(DefaultS3Operator.java:301)
com.automq.stream.s3.compact.operator.DataBlockWriter.(DataBlockWriter.java:54)
com.automq.stream.s3.compact.CompactionManager.lambda$splitWALObjects$27(CompactionManager.java:326)
java.base/java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:718)
java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482)
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
java.base/java.lang.Thread.run(Thread.java:833) (io.netty.util.ResourceLeakDetector)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants