Miroslav Beranič created SLING-8764:
---------------------------------------
Summary: A metric named
commons.scheduler.oldest.running.job.millis already exists
Key: SLING-8764
URL: https://issues.apache.org/jira/browse/SLING-8764
Project: Sling
Issue Type: Bug
Components: Commons
Reporter: Miroslav Beranič
GaugesSupport throws an exception when activation happens after first time, as
metrics do not get unregistered from the MetricRegistry.
Method @Deactivate should be updated to unregister registered metric at the
@Activate method.
There seems to be already some-kind of metric-name tracking, but do not know
what is the useage. So I've created "quick&easy" solution, to track registered
metric names and use this name array at the @Deactivate to unregister metric
names.
I will provide PR at the project GitHub page located at the:
https://github.com/apache/sling-org-apache-sling-commons-scheduler
This is just a proposal, I guess author knows what is missing better.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)