-
Notifications
You must be signed in to change notification settings - Fork 153
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
[ISSUE-553] Avoid removing buffer multiple times when clearing resources #534
Conversation
Codecov Report
@@ Coverage Diff @@
## master #534 +/- ##
============================================
- Coverage 60.21% 60.21% -0.01%
Complexity 1784 1784
============================================
Files 205 205
Lines 11557 11556 -1
Branches 1042 1042
============================================
- Hits 6959 6958 -1
Misses 4190 4190
Partials 408 408
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Seems there are multiple instances for this double release. if is too much trouble, we than defer that in later improvement. |
LGTM.
+1. I will merge this if it still has too much work to do when adding tests. |
I will try to add this ut in this pr. |
Similar ut already exist before. incubator-uniffle/server/src/test/java/org/apache/uniffle/server/ShuffleTaskManagerTest.java Line 576 in 67d1559
And a new ut is added for this pr. PTAL. @zuston @advancedxy |
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.
LGTM
Thanks @xianjingfeng @advancedxy. Merged. |
What changes were proposed in this pull request?
Avoid remove buffer multiple times when clear resource
Why are the changes needed?
This will cause memory to be released multiple times, Fix #533
Does this PR introduce any user-facing change?
No
How was this patch tested?
No need