java-driver
java-driver copied to clipboard
fix: fix race in Uuids.ClockSeqAndNodeContainer double-checked init
Reordered writes in ClockSeqAndNodeContainer.get() to assign val before setting the volatile initialized flag.
The updated sequence ensures val is fully constructed and visible before publication via the volatile write.