Skip to content

Commit

Permalink
[fix][broker] Fix memory leak during topic compaction (#21647)
Browse files Browse the repository at this point in the history
  • Loading branch information
coderzc authored and Technoboy- committed Dec 4, 2023
1 parent dc7ba28 commit c8e9640
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,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 c8e9640

Please sign in to comment.