You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by wa...@apache.org on 2021/07/01 02:35:08 UTC
[hbase] branch branch-2.3 updated: HBASE-26028 The view as json
page shows exception when using TinyLfuBlockCache
This is an automated email from the ASF dual-hosted git repository.
wangzheng pushed a commit to branch branch-2.3
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2.3 by this push:
new 08b5625 HBASE-26028 The view as json page shows exception when using TinyLfuBlockCache
08b5625 is described below
commit 08b56251e89c7a9305a981ccbd642ac03a660d5a
Author: bsglz <18...@qq.com>
AuthorDate: Wed Jun 30 11:36:00 2021 +0800
HBASE-26028 The view as json page shows exception when using TinyLfuBlockCache
---
.../java/org/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 1b41c0e..bc1e1b6 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
@@ -62,15 +62,15 @@ 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<BlockCacheKey, Cacheable> policy;
- private final ScheduledExecutorService statsThreadPool;
+ private transient final Eviction<BlockCacheKey, Cacheable> policy;
+ private transient final ScheduledExecutorService statsThreadPool;
private final long maxBlockSize;
private final CacheStats stats;
- private BlockCache victimCache;
+ private transient BlockCache victimCache;
@VisibleForTesting
- final Cache<BlockCacheKey, Cacheable> cache;
+ transient final Cache<BlockCacheKey, Cacheable> cache;
/**
* Creates a block cache.