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
(cherry picked from commit d5457d3)
  • Loading branch information
coderzc authored and nodece committed Feb 23, 2024
1 parent cbec5ea commit a660503
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,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 a660503

Please sign in to comment.