mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
109729: Merged 5.0.2 (5.0.2) to 5.0.N (5.0.3) 109705: MNT-14463: Deadlock during startup DictionaryDAO: Remove side-effect code in: - DictionaryRepositoryBootstrap.register: Now it only registers listeners rathern than destroying and rebuilding the dictionary - DictionaryDAOImpl.removeDictionaryRegistry: Now it only removes the dictionary rather than removes and reinitialized DictionaryRepositoryBootstrap.onBootstrap: - RESETS the dictionary (destroy, reinitialize) - Then registers listeners - Then fires application events The stacks and logs for the deadlock show that the dictioanary bootstrap was triggering a background reload and then firing the application events without checking that the dictionary had loaded. The events will now only be fired once the dictionary has successfully retrieved an instance i.e. no other code will need to wait for the background thread after the reset has finished. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@109804 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261