-
Notifications
You must be signed in to change notification settings - Fork 149
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
[#2061]fix(server): Fix netty memory leak when removeBuffer and cacheShuffle… #2059
Conversation
Test Results 2 895 files - 31 2 895 suites - 31 5h 48m 30s ⏱️ - 14m 54s For more details on these failures, see this check. Results for commit 8926722. ± Comparison against base commit 78fe934. ♻️ This comment has been updated with latest results. |
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.
Could you help describe more why this(remove/cache buffer) will happen at the same time?
server/src/main/java/org/apache/uniffle/server/buffer/AbstractShuffleBuffer.java
Outdated
Show resolved
Hide resolved
|
@@ -110,7 +111,8 @@ public int getBlockCount() { | |||
} | |||
|
|||
@Override | |||
public void release() { | |||
public synchronized void release() { |
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.
I think close is more appropriate than release. The close means that we has closed this and cannot be used again. Release just means that we releases the resource.
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.
I will to create a new PR to do this if necessary.
30229b5
to
5357372
Compare
…Data happen concurrent (merge request !278)
Ping @jerqi @rickyma @zhengchenyu |
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.
+1. Sorry for the later reply, I missed this review.
BTW, If I missed somthing, feel free to ping me @lwllvyb or by wechat |
…fer and cacheShuffleData happen at the same time (apache#2059) ### What changes were proposed in this pull request? Fix netty memory leak when removeBuffer and cacheShuffleData happen concurrent ### Why are the changes needed? Fix: apache#2061 ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Existing tests --- Co-authored-by: wenlongwlli <[email protected]> (cherry picked from commit aab887d)
### What changes were proposed in this pull request? ### Why are the changes needed? Fix: apache#2061 ### Does this PR introduce any user-facing change? No. ### How was this patch tested? CI (cherry picked from commit bb06eeb)
What changes were proposed in this pull request?
Fix netty memory leak when removeBuffer and cacheShuffleData happen concurrent
Why are the changes needed?
(Please clarify why the changes are needed. For instance,
Fix: #2061
Does this PR introduce any user-facing change?
(Please list the user-facing changes introduced by your change, including
No.
How was this patch tested?
(Please test your changes, and provide instructions on how to test it: