[
https://issues.apache.org/jira/browse/HBASE-15976?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15318026#comment-15318026
]
ramkrishna.s.vasudevan commented on HBASE-15976:
------------------------------------------------
The run() already does the getStats() from blockCache. So
{code}
cacheStats = blockCache.getStats();
{code}
is not needed. +1 on patch
> RegionServerMetricsWrapperRunnable will be failure when disable blockcache.
> ----------------------------------------------------------------------------
>
> Key: HBASE-15976
> URL: https://issues.apache.org/jira/browse/HBASE-15976
> Project: HBase
> Issue Type: Bug
> Affects Versions: 0.98.15
> Reporter: Liu Junhong
> Assignee: Jingcheng Du
> Attachments: HBASE-15976-0.98.patch,
> HBASE-15976-branch-1&branch-1.3.patch, HBASE-15976-branch-1.0.patch,
> HBASE-15976-branch-1.1.patch, HBASE-15976-branch-1.2.patch,
> HBASE-15976-master.patch
>
>
> When i disable blockcache, the code "cacheStats = blockCache.getStats();"
> will occur NPE in
> org.apache.hadoop.hbase.regionserver.MetricsRegionServerWrapperImpl.RegionServerMetricsWrapperRunnable.
> It lead to many regionserver's metrics' value always equal 0.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)