RATIS-1847. Stream has memory leak.#884
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.
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