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/08/24 18:42:20 UTC
[GitHub] [pulsar] eolivelli commented on a diff in pull request #17241: [managed-ledger] Do not send duplicate reads to BK/offloaders
eolivelli commented on code in PR #17241:
URL: https://github.com/apache/pulsar/pull/17241#discussion_r954167338
##########
managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/cache/RangeEntryCacheImpl.java:
##########
@@ -52,9 +58,18 @@ public class RangeEntryCacheImpl implements EntryCache {
private ManagedLedgerInterceptor interceptor;
private final RangeCache<PositionImpl, EntryImpl> entries;
private final boolean copyEntries;
+ private final ConcurrentHashMap<PendingReadKey, CachedPendingRead> cachedPendingReads =
+ new ConcurrentHashMap<>();
private static final double MB = 1024 * 1024;
+ @Value
+ private static class PendingReadKey {
+ private final long ledgerId;
+ private final long startEntry;
+ private final long endEntry;
Review Comment:
done
--
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