Skip to content

Commit 147b030

Browse files
authored
HBASE-26028 The view as json page shows exception when using TinyLfuBlockCache (#3420)
1 parent 51893b9 commit 147b030

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,14 @@ public final class TinyLfuBlockCache implements FirstLevelBlockCache {
6161
private static final long DEFAULT_MAX_BLOCK_SIZE = 16L * 1024L * 1024L;
6262
private static final int STAT_THREAD_PERIOD_SECONDS = 5 * 60;
6363

64-
private final Eviction<BlockCacheKey, Cacheable> policy;
65-
private final ScheduledExecutorService statsThreadPool;
64+
private transient final Eviction<BlockCacheKey, Cacheable> policy;
65+
private transient final ScheduledExecutorService statsThreadPool;
6666
private final long maxBlockSize;
6767
private final CacheStats stats;
6868

69-
private BlockCache victimCache;
69+
private transient BlockCache victimCache;
7070

71-
final Cache<BlockCacheKey, Cacheable> cache;
71+
transient final Cache<BlockCacheKey, Cacheable> cache;
7272

7373
/**
7474
* Creates a block cache.

0 commit comments

Comments
 (0)