From d8645dd6a2ee777db7f72967346218dbf36cbed7 Mon Sep 17 00:00:00 2001 From: bsglz <18031031@qq.com> Date: Wed, 23 Jun 2021 22:36:19 +0800 Subject: [PATCH] HBASE-26028 The view as json page shows exception when using TinyLfuBlockCache --- .../apache/hadoop/hbase/io/hfile/TinyLfuBlockCache.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/TinyLfuBlockCache.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/TinyLfuBlockCache.java index 6f914f56a653..e5e2e8fb6320 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/TinyLfuBlockCache.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/TinyLfuBlockCache.java @@ -61,14 +61,14 @@ public final class TinyLfuBlockCache implements FirstLevelBlockCache { private static final long DEFAULT_MAX_BLOCK_SIZE = 16L * 1024L * 1024L; private static final int STAT_THREAD_PERIOD_SECONDS = 5 * 60; - private final Eviction policy; - private final ScheduledExecutorService statsThreadPool; + private transient final Eviction policy; + private transient final ScheduledExecutorService statsThreadPool; private final long maxBlockSize; private final CacheStats stats; - private BlockCache victimCache; + private transient BlockCache victimCache; - final Cache cache; + transient final Cache cache; /** * Creates a block cache.