HBASE-4976 Add compaction/flush queue size metrics mistakenly removed by HFile v2

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1211719 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2011-12-08 00:11:26 +00:00
parent f4ef4485a7
commit 77dae7ccb7
1 changed files with 16 additions and 12 deletions

View File

@ -1389,6 +1389,10 @@ public class HRegionServer implements HRegionInterface, HBaseRPCErrorHandler,
(int) (totalStaticBloomSize / 1024)); (int) (totalStaticBloomSize / 1024));
this.metrics.readRequestsCount.set(readRequestsCount); this.metrics.readRequestsCount.set(readRequestsCount);
this.metrics.writeRequestsCount.set(writeRequestsCount); this.metrics.writeRequestsCount.set(writeRequestsCount);
this.metrics.compactionQueueSize.set(compactSplitThread
.getCompactionQueueSize());
this.metrics.flushQueueSize.set(cacheFlusher
.getFlushQueueSize());
BlockCache blockCache = cacheConfig.getBlockCache(); BlockCache blockCache = cacheConfig.getBlockCache();
if (blockCache != null) { if (blockCache != null) {