HBASE-23056 Block count is 0 when BucketCache using persistent IOEngine and retrieve from file

Signed-off-by: Reid Chan <reidchan@apache.org>
This commit is contained in:
zbq.dean 2019-09-20 17:31:13 +08:00 committed by Reid Chan
parent 558d835654
commit 4a0442d14e
1 changed files with 1 additions and 0 deletions

View File

@ -1120,6 +1120,7 @@ public class BucketCache implements BlockCache, HeapSize {
bucketAllocator = allocator; bucketAllocator = allocator;
deserialiserMap = deserMap; deserialiserMap = deserMap;
backingMap = backingMapFromFile; backingMap = backingMapFromFile;
blockNumber.set(backingMap.size());
} finally { } finally {
if (ois != null) { if (ois != null) {
ois.close(); ois.close();