You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/10/18 08:18:21 UTC

[GitHub] [pulsar] poorbarcode commented on a diff in pull request #18076: [fix][broker]Cache invalidation due to concurrent access

poorbarcode commented on code in PR #18076:
URL: https://github.com/apache/pulsar/pull/18076#discussion_r997876487


##########
managed-ledger/src/main/java/org/apache/bookkeeper/mledger/util/RangeCache.java:
##########
@@ -196,13 +196,11 @@ public Pair<Integer, Long> evictLEntriesBeforeTimestamp(long maxTimestamp) {
            if (entry == null || timestampExtractor.getTimestamp(entry.getValue()) > maxTimestamp) {
                break;
            }
-
-           entry = entries.pollFirstEntry();
-           if (entry == null) {
+           Value value = entries.remove(entry.getKey());

Review Comment:
   Already fixed



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org