You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Naganarasimha G R (JIRA)" <ji...@apache.org> on 2017/01/07 10:45:58 UTC
[jira] [Resolved] (HADOOP-13806) MetricsSourceBuilder doesn't set
hasAtMetric when the Source object is reregistered
[ https://issues.apache.org/jira/browse/HADOOP-13806?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Naganarasimha G R resolved HADOOP-13806.
----------------------------------------
Resolution: Won't Fix
Not required, its easier for the clients to use a new Object rather than framework supporting reregistering of the same object with the MetricsSystem
> MetricsSourceBuilder doesn't set hasAtMetric when the Source object is reregistered
> -----------------------------------------------------------------------------------
>
> Key: HADOOP-13806
> URL: https://issues.apache.org/jira/browse/HADOOP-13806
> Project: Hadoop Common
> Issue Type: Bug
> Reporter: Naganarasimha G R
> Assignee: Naganarasimha G R
> Attachments: HADOOP-13806.001.patch
>
>
> We are trying to register a Object (instance of MetricsObject) which has already been registered and unregistered. During this operation we got an exception during MetricsSourceBuilder.build()
> {code}
> org.apache.hadoop.metrics2.MetricsException: No valid @Metric annotation found.
> at org.apache.hadoop.metrics2.lib.MetricsSourceBuilder.build(MetricsSourceBuilder.java:83)
> at org.apache.hadoop.metrics2.impl.MetricsSystemImpl.register(MetricsSystemImpl.java:225)
> at org.apache.hadoop.metrics2.impl.TestMetricsSystemImpl.testUnregisterSource(TestMetricsSystemImpl.java:417)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: common-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-dev-help@hadoop.apache.org