From 1aab391424975fdd96a73d46560307fe469ec9a2 Mon Sep 17 00:00:00 2001
From: stack
Date: Mon, 12 Oct 2015 12:45:40 -0700
Subject: [PATCH] HBASE-14582 Regionserver status webpage bucketcache list can
become huge
---
.../tmpl/regionserver/BlockCacheTmpl.jamon | 22 -------------------
1 file changed, 22 deletions(-)
diff --git a/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/BlockCacheTmpl.jamon b/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/BlockCacheTmpl.jamon
index b13a1d9d60e..6986f129946 100644
--- a/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/BlockCacheTmpl.jamon
+++ b/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/BlockCacheTmpl.jamon
@@ -304,12 +304,10 @@ are combined counts. Request count is sum of hits and misses.
boolean bucketCache = bc.getClass().getSimpleName().equals("BucketCache");
BucketCacheStats bucketCacheStats = null;
BucketAllocator bucketAllocator = null;
- Bucket [] buckets = null;
if (bucketCache) {
bucketCacheStats = (BucketCacheStats)bc.getStats();
bucketAllocator = ((BucketCache)bc).getAllocator();
- buckets = bucketAllocator.getBuckets();
}
%java>
<%if cbsbf.isFull() %>
@@ -375,26 +373,6 @@ are combined counts. Request count is sum of hits and misses.
<%doc>Call through to block cache Detail rendering template%doc>
View block cache as JSON | Block cache as JSON by file
-<%if bucketCache %>
-BucketCache does not discern between DATA and META blocks so we do not show DATA counts (If deploy is using CombinedBlockCache, BucketCache is only DATA blocks
-BucketCache Buckets
-
-
- Bucket Offset |
- Allocation Size |
- Free Bytes |
- Used Bytes |
-
-<%for Bucket bucket: buckets %>
-
- <% bucket.getBaseOffset() %> |
- <% bucket.getItemAllocationSize() %> |
- <% bucket.getFreeBytes() %> |
- <% bucket.getUsedBytes() %> |
-
-%for>
-
-%if>
<%java>
cbsbf = null;
%java>