From 7a78d871d039c1471f93c4369f9885ad69a09000 Mon Sep 17 00:00:00 2001 From: Jingcheng Du Date: Tue, 28 Jun 2016 13:52:30 +0800 Subject: [PATCH] HBASE-15976 RegionServerMetricsWrapperRunnable will be failure when disable blockcache. --- .../hbase/regionserver/MetricsRegionServerWrapperImpl.java | 1 - 1 file changed, 1 deletion(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsRegionServerWrapperImpl.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsRegionServerWrapperImpl.java index 56ccf62a0d2..7e6d87c4856 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsRegionServerWrapperImpl.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsRegionServerWrapperImpl.java @@ -505,7 +505,6 @@ class MetricsRegionServerWrapperImpl synchronized public void run() { try { initBlockCache(); - cacheStats = blockCache.getStats(); HDFSBlocksDistribution hdfsBlocksDistribution = new HDFSBlocksDistribution(); HDFSBlocksDistribution hdfsBlocksDistributionSecondaryRegions =