[ 
https://issues.apache.org/jira/browse/HBASE-6514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13447137#comment-13447137
 ] 

Elliott Clark commented on HBASE-6514:
--------------------------------------

Yes the code committed will fix the log spam 
(https://github.com/apache/hbase/commit/dd2c09a790dd5a1c0236cc9e511523c731325a76).
 

The code I was thinking about was in HBASE-6211.  That issue was committed 
earlier that made it so that histograms were actually used and exported through 
the metrics system.  However the log spam remained because base classes were 
seeing some instances of histograms before the super classes were able to 
register as being responsible.  

The patch in this issue should make it so that MetricsHistogram's and 
ExactCounterMetric are correctly taken care of assuming that an 
org.apache.hadoop.hbase.MetricsMBeanBase is used to export them.  For trunk the 
best thing will be to just finish moving everything to metrics2.  It has a 
better system for creating our own metrics classes.
                
> unknown metrics type: 
> org.apache.hadoop.hbase.metrics.histogram.MetricsHistogram
> --------------------------------------------------------------------------------
>
>                 Key: HBASE-6514
>                 URL: https://issues.apache.org/jira/browse/HBASE-6514
>             Project: HBase
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 0.92.2, 0.94.0
>         Environment: MacOS 10.8
> Oracle JDK 1.7
>            Reporter: Archimedes Trajano
>            Assignee: Elliott Clark
>             Fix For: 0.92.2, 0.96.0, 0.94.2
>
>         Attachments: FrameworkTest.java, HBASE-6514-94-0.patch, 
> HBASE-6514-trunk-0.patch
>
>
> When trying to run a unit test that just starts up and shutdown the server 
> the following errors occur in System.out
> 01:10:59,874 ERROR MetricsUtil:116 - unknown metrics type: 
> org.apache.hadoop.hbase.metrics.histogram.MetricsHistogram
> 01:10:59,874 ERROR MetricsUtil:116 - unknown metrics type: 
> org.apache.hadoop.hbase.metrics.histogram.MetricsHistogram
> 01:10:59,875 ERROR MetricsUtil:116 - unknown metrics type: 
> org.apache.hadoop.hbase.metrics.histogram.MetricsHistogram
> 01:10:59,875 ERROR MetricsUtil:116 - unknown metrics type: 
> org.apache.hadoop.hbase.metrics.histogram.MetricsHistogram

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to