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:
parent
558d835654
commit
4a0442d14e
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue