HBASE-26028 The view as json page shows exception when using TinyLfuBlockCache (#3420)

(cherry picked from commit 147b030c1f)
This commit is contained in:
bsglz 2021-06-30 11:36:00 +08:00
parent 748e369629
commit b90fbb77c6
1 changed files with 4 additions and 4 deletions

View File

@ -61,14 +61,14 @@ public final class TinyLfuBlockCache implements FirstLevelBlockCache {
private static final long DEFAULT_MAX_BLOCK_SIZE = 16L * 1024L * 1024L; private static final long DEFAULT_MAX_BLOCK_SIZE = 16L * 1024L * 1024L;
private static final int STAT_THREAD_PERIOD_SECONDS = 5 * 60; private static final int STAT_THREAD_PERIOD_SECONDS = 5 * 60;
private final Eviction<BlockCacheKey, Cacheable> policy; private transient final Eviction<BlockCacheKey, Cacheable> policy;
private final ScheduledExecutorService statsThreadPool; private transient final ScheduledExecutorService statsThreadPool;
private final long maxBlockSize; private final long maxBlockSize;
private final CacheStats stats; private final CacheStats stats;
private BlockCache victimCache; private transient BlockCache victimCache;
final Cache<BlockCacheKey, Cacheable> cache; transient final Cache<BlockCacheKey, Cacheable> cache;
/** /**
* Creates a block cache. * Creates a block cache.