[ 
https://issues.apache.org/jira/browse/HBASE-4050?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alex Baranau updated HBASE-4050:
--------------------------------

    Attachment: HBASE-4050.patch

Attached very first version of a patch.

Note: since HBase trunk points to 1.0.3 version of Hadoop, we cannot use fancy 
annotations of metrics2 framework which were added later. But still things 
should look clean. As far as I understand, if we decide to switch to using 
annotations, we should be OK: external system will not notice the change.
Note2: I only added new metrics for HMaster so far.

As we agreed, I only integrated new framework, left old metrics as they are. 
Hence, sorry for weird "V2"-postfixed names in this initial patch.
Also, as agreed, I've added only single metric to be exposed: cluster_requests. 
Tried to add unit-test for it (wasn't very easy to test that metric, I have a 
fear that this unit-test may fail sometimes because the fake request in this 
test not the only one that can happen at the time of execution).

Anyhow, will work further on this.
                
> Update HBase metrics framework to metrics2 framework
> ----------------------------------------------------
>
>                 Key: HBASE-4050
>                 URL: https://issues.apache.org/jira/browse/HBASE-4050
>             Project: HBase
>          Issue Type: New Feature
>          Components: metrics
>    Affects Versions: 0.90.4
>         Environment: Java 6
>            Reporter: Eric Yang
>            Priority: Critical
>         Attachments: HBASE-4050.patch
>
>
> Metrics Framework has been marked deprecated in Hadoop 0.20.203+ and 0.22+, 
> and it might get removed in future Hadoop release.  Hence, HBase needs to 
> revise the dependency of MetricsContext to use Metrics2 framework.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to