[jboss-jira] [JBoss JIRA] (WFLY-10134) ee8.preview.mode property is racy
David Lloyd (JIRA)
issues at jboss.org
Wed Mar 28 15:58:00 EDT 2018
[ https://issues.jboss.org/browse/WFLY-10134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13553212#comment-13553212 ]
David Lloyd commented on WFLY-10134:
------------------------------------
>From my TRACE test output, it looks like {{javax.servlet.api}} is loaded by the Undertow extension (in this case by {{ServerService Thread Pool \-\- 65}}) chronologically ahead of the system property configuration being processed (which happens in {{Controller Boot Thread}}).
> ee8.preview.mode property is racy
> ---------------------------------
>
> Key: WFLY-10134
> URL: https://issues.jboss.org/browse/WFLY-10134
> Project: WildFly
> Issue Type: Bug
> Components: EE
> Reporter: David Lloyd
> Priority: Critical
>
> The {{ee8-temp}} tests set the {{ee8.preview.mode}} property in the server management model, relying on system properties to get parsed and set before extensions which use Java EE 8 APIs are loaded. This assumption appears to be invalid.
> System properties are installed by the boot controller thread, and extensions are loaded in server service threads. In testing with the latest jboss-modules, I've observed cases where the controller thread does not add system properties until after some extension loading has happened in the server service threads. I haven't untangled why this happens only with the most recent jboss-modules in play, but the race exists regardless.
> Setting the {{ee8.preview.mode}} in {{arquillian.xml}} appears to work around the issue.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jboss-jira
mailing list