Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-8764

A metric named commons.scheduler.oldest.running.job.millis already exists

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • Commons Scheduler 2.7.6
    • Commons
    • None

    Description

      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.

      Attachments

        Activity

          People

            stefanegli Stefan Egli
            mibesis Miroslav Beranič
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2h 10m
                2h 10m