Skip to content

Commit

Permalink
[fix][broker] Fix memory leak during topic compaction (apache#21647)
Browse files Browse the repository at this point in the history
  • Loading branch information
coderzc authored and srinath-ctds committed Dec 20, 2023
1 parent 7ae661e commit 2f950fa
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ private void phaseTwoLoop(RawReader reader, MessageId to, Map<String, MessageId>
}

if (m.getMessageId().compareTo(lastCompactedMessageId) <= 0) {
m.close();
phaseTwoLoop(reader, to, latestForKey, lh, outstanding, promise, lastCompactedMessageId);
return;
}
Expand Down

0 comments on commit 2f950fa

Please sign in to comment.