Description
Double-checked locking can be used for lazy initialization of volatile fields, but only if field assignment is the last step in the synchronized block. Otherwise, you run the risk of threads accessing a half-initialized object.
The problem is consistent with KAFKA-13777
Attachments
Issue Links
- links to