Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-11710

Datasource metrics are not always exposed by the metrics subsystem

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • 16.0.0.Final
    • 16.0.0.Beta1
    • MP Metrics
    • None

    Description

      The metrics subsystem install a service at RUNTIME to register any metrics on the resources registered in WildFly management tree.

      However, the metrics for datasources are provided by the statistics=jdbc and statistics=pool children of the datasource resource which are installed at RUNTIME.

      Since there is no dependency between the metrics service and the service that installs the datasource statistics, it is possible that the metrics services is started before and while traverse the WildFly management tree before the statistics resources are added to it.

      This issue is intermittent and depend on the sequence of execution of unrelated services.

      To circumvent this issue, the metrics subsystem could install its service at VERIFY stage (instead of RUNTIME) and will then have the guarantee that any resources created at RUNTIME is present in WildFly management tree.

      Attachments

        Activity

          People

            jmesnil1@redhat.com Jeff Mesnil
            jmesnil1@redhat.com Jeff Mesnil
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: