Apache9 commented on a change in pull request #3699: URL: https://github.com/apache/hbase/pull/3699#discussion_r718087826
########## File path: hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/bucket/BucketProtoUtils.java ########## @@ -127,19 +130,23 @@ private BucketProtoUtils() { } static ConcurrentHashMap<BlockCacheKey, BucketEntry> fromPB( - Map<Integer, String> deserializers, BucketCacheProtos.BackingMap backingMap) + Map<Integer, String> deserializers, BucketCacheProtos.BackingMap backingMap, + Function<BucketEntry, Recycler> createRecycler) throws IOException { ConcurrentHashMap<BlockCacheKey, BucketEntry> result = new ConcurrentHashMap<>(); for (BucketCacheProtos.BackingMapEntry entry : backingMap.getEntryList()) { BucketCacheProtos.BlockCacheKey protoKey = entry.getKey(); BlockCacheKey key = new BlockCacheKey(protoKey.getHfilename(), protoKey.getOffset(), protoKey.getPrimaryReplicaBlock(), fromPb(protoKey.getBlockType())); BucketCacheProtos.BucketEntry protoValue = entry.getValue(); + // TODO:We use ByteBuffAllocator.HEAP here, because we could not get the ByteBuffAllocator Review comment: Mind explaining that why using ByteBufferAllocator.HEAP is fine for now? -- 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: issues-unsubscr...@hbase.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org