Skip to content

Commit 5848e14

Browse files
ZhaoBQReidddddd
authored andcommitted
HBASE-23056 Block count is 0 when BucketCache using persistent IOEngine and retrieve from file
Signed-off-by: Reid Chan <reidchan@apache.org>
1 parent 1aee5f0 commit 5848e14

File tree

1 file changed

+1
-0
lines changed
  • hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/bucket

1 file changed

+1
-0
lines changed

hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/bucket/BucketCache.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1094,6 +1094,7 @@ private void retrieveFromFile(int[] bucketSizes) throws IOException {
10941094
}
10951095
parsePB(BucketCacheProtos.BucketCacheEntry.parseDelimitedFrom(in));
10961096
bucketAllocator = new BucketAllocator(cacheCapacity, bucketSizes, backingMap, realCacheSize);
1097+
blockNumber.add(backingMap.size());
10971098
}
10981099
}
10991100

0 commit comments

Comments
 (0)