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 3, 2023
1 parent 66123ac commit 9d39d88
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,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 9d39d88

Please sign in to comment.