-
Notifications
You must be signed in to change notification settings - Fork 440
RATIS-1847. Stream has memory leak. #884
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
Conversation
|
@guohao-rosicky , could you test if this could fix this memory leak and also the cleanup problem? |
sure. |
ratis-netty/src/main/java/org/apache/ratis/netty/server/DataStreamManagement.java
Show resolved
Hide resolved
|
hi, @szetszwo By looking at the LEAK log, I'm not sure if the leak was caused by calling ByteBuf::retain here and not calling ByteBuf::release twice. leak log: |
Do you mean the new LEAK log after applied this change?
Calling ByteBuf::release twice seems incorrect. The second call should triggered an exception. |
|
hi, @szetszwo. I have committed the code related to stream cleanup on ozone datanode, I have made some changes please help me to review it, thanks. |
|
@guohao-rosicky , how is your testing going? |
|
adoroszlai
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @szetszwo for the patch. I'm not familiar with Ratis streaming, but the change itself looks good.
|
@guohao-rosicky , thanks a lot for testing this! @adoroszlai , thanks a lot for reviewing this! |
See https://issues.apache.org/jira/browse/RATIS-1847