[jboss-jira] [JBoss JIRA] (WFLY-11760) Race condition when starting the DeploymentMetricService

James Perkins (Jira) issues at jboss.org
Thu Feb 21 17:08:00 EST 2019


     [ https://issues.jboss.org/browse/WFLY-11760?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Perkins reassigned WFLY-11760:
------------------------------------

    Assignee: Richard Opalka  (was: Jeff Mesnil)


> Race condition when starting the DeploymentMetricService
> --------------------------------------------------------
>
>                 Key: WFLY-11760
>                 URL: https://issues.jboss.org/browse/WFLY-11760
>             Project: WildFly
>          Issue Type: Bug
>          Components: MP Metrics
>            Reporter: James Perkins
>            Assignee: Richard Opalka
>            Priority: Major
>
> It looks like there is a race condition that produces an NPE in the {{DeploymentMetricService}}. The {{MetricsRegistrationService}} asynchronously starts {{MetricCollector}} and for some reason the {{Supplier}} returns {{null}} even though there is a service dependency. 
> {code}
> 11:42:18,814 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.unit."simple-servlet.war".metrics: org.jboss.msc.service.StartException in service jboss.deployment.unit."simple-servlet.war".metrics: Failed to start service
> 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1730)
> 	at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1558)
> 	at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
> 	at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982)
> 	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
> 	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
> 	at java.lang.Thread.run(Thread.java:748)
> Caused by: java.lang.NullPointerException
> 	at org.wildfly.extension.microprofile.metrics.MetricsRegistrationService.registerMetrics(MetricsRegistrationService.java:162)
> 	at org.wildfly.extension.microprofile.metrics.deployment.DeploymentMetricService.start(DeploymentMetricService.java:55)
> 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1738)
> 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1700)
> 	... 6 more
> {code}



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list