UndertowDeploymentService starts web components in MSC thread
-------------------------------------------------------------
Key: WFLY-4736
URL:
https://issues.jboss.org/browse/WFLY-4736
Project: WildFly
Issue Type: Bug
Components: Web (Undertow)
Affects Versions: 9.0.0.CR1
Reporter: jaikiran pai
Assignee: jaikiran pai
Fix For: 9.0.0.CR2, 10.0.0.Alpha3
The UndertowDeploymentService triggers web components' start and stop lifecycle
within the MSC thread which can lead to the server blocking during deployment. This was an
issue with the older JBoss Web version of the Service too which was fixed as part of
https://issues.jboss.org/browse/AS7-5969 (
https://github.com/wildfly/wildfly/pull/3455).
The same needs to be ported to this UndertowDeploymentService.
Here's an example where a user deployment ends up being blocked
https://developer.jboss.org/message/932681#932681