Madhusoodan created HADOOP-17081:

             Summary: MetricsSystem restart doesn't register the sinks back
                 Key: HADOOP-17081
             Project: Hadoop Common
          Issue Type: Bug
          Components: metrics
         Environment: NA
            Reporter: Madhusoodan

In HBase we use dynamic metrics and when a metric is removed, we have to 
refresh the JMX beans, since there is no API from Java to do it, a hack like 
stopping the metrics system and restarting it was used (Read the comment on the 


It calls the below APIs in the same order




MetricsSystem.stop stops all the SinkAdapters, *but doesn't remove them from 
the sink list* (allSinks is the variable). When the metrics system is started 
again, *it is assumed that the SinkAdapters are restarted, but they are not* 
due to the check done in the beginning of the function register.

This message was sent by Atlassian Jira

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to