[jboss-jira] [JBoss JIRA] (WFLY-11710) Datasource metrics are not always exposed by the metrics subsystem
Jeff Mesnil (Jira)
issues at jboss.org
Wed Feb 13 08:45:01 EST 2019
Jeff Mesnil created WFLY-11710:
----------------------------------
Summary: Datasource metrics are not always exposed by the metrics subsystem
Key: WFLY-11710
URL: https://issues.jboss.org/browse/WFLY-11710
Project: WildFly
Issue Type: Bug
Components: MP Metrics
Affects Versions: 16.0.0.Beta1
Reporter: Jeff Mesnil
Assignee: Jeff Mesnil
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.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list