Skip to content

Commit

Permalink
[fix][broker] Fix BucketDelayedDeliveryTracker thread safety (apache#…
Browse files Browse the repository at this point in the history
…24014)

(cherry picked from commit a83dd86)
(cherry picked from commit 50997af)
  • Loading branch information
dao-jun authored and nikhil-ctds committed Feb 27, 2025
1 parent e77a418 commit aa0c617
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ private boolean removeIndexBit(long ledgerId, long entryId) {
.orElse(false);
}

public boolean containsMessage(long ledgerId, long entryId) {
public synchronized boolean containsMessage(long ledgerId, long entryId) {
if (lastMutableBucket.containsMessage(ledgerId, entryId)) {
return true;
}
Expand Down

0 comments on commit aa0c617

Please sign in to comment.