]
Brian Stansberry updated WFCORE-234:
------------------------------------
Fix Version/s: 3.0.0.Alpha4
(was: 3.0.0.Alpha3)
Inconsistent synchronization in ConfigurationFile
-------------------------------------------------
Key: WFCORE-234
URL:
https://issues.jboss.org/browse/WFCORE-234
Project: WildFly Core
Issue Type: Bug
Components: Domain Management
Affects Versions: 1.0.0.Alpha11
Reporter: Brian Stansberry
Fix For: 3.0.0.Alpha4
ConfigurationFile synchronizes on itself in some places and not in others. This may cause
problems, particularly with the history dir.
The one that comes to mind is successfulBoot is synchronized, but all the methods called
by ConfigurationFilePersistenceResource are not. The latter is called with the controller
lock held, but the former is not. So there's a possibility of two threads interacting
with the files concurrently if an operation executes immediately after boot.
The deployment scanner schedules such an op, so it's possible. Currently the schedule
is for 200 ms after deployment-scanner add runs during boot.