-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[fix][broker] Fix memory leak during topic compaction #21647
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #21647 +/- ##
=============================================
+ Coverage 24.71% 72.95% +48.23%
- Complexity 199 3748 +3549
=============================================
Files 1713 1892 +179
Lines 131084 140681 +9597
Branches 14320 15495 +1175
=============================================
+ Hits 32403 102634 +70231
+ Misses 93583 29921 -63662
- Partials 5098 8126 +3028
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
Good work, could you add a test for this case?
If a memory leak occurs here, the above log will appear in |
(cherry picked from commit d5457d3)
(cherry picked from commit d5457d3)
Motivation
Found the following error log in
CompactionTest.testCompactionDuplicate
:Fix memory leak after RawReader reconnects when topic compaction, this issue introduced from #21081.
Modifications
Close RawMessage if
messageId <= lastCompactedMessageId
.Documentation
doc
doc-required
doc-not-needed
doc-complete
Matching PR in forked repository
PR in forked repository: