Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.9.0
-
None
Description
Situation
If multiple threads invoke lazyInitGlobalEntityManager at same time and lazyInitGlobalEntityManager isn't invoked before. Some of these threads might end up with a null entitymanager, because lazyInitGlobalEntityManager isn't synchronized (or this.globalEntityManagerInitialized = true is at wrong place).
Might be important to fix this, because In rare situations this might break your application and even cause inconsistent data.
Problem
entityManager is null after initialization is concurrently called
Expected
entityManager won't be null when initialized concurrently
PR
Attachments
Issue Links
- relates to
-
DELTASPIKE-1383 Authorizer is marked initialized before being fully initialed. NullPointerException follows.
- Closed