exist
exist copied to clipboard
Insufficient synchronization in Journal.java
There is insufficient synchronization on the currentBuffer field in Journal.java, sometimes it is accessed under synchronized block:
Journal#writeToLog(Loggable)-> currentBuffer...Journal#flushToLog(Loggable)->Journal#flushBuffer()-> currentBuffer...
...and other times it is NOT, e.g.:
Journal#checkpoint(long, boolean)->Journal#flushBuffer()-> currentBuffer...Journal#shutdown(long, boolean)->Journal#flushBuffer()-> currentBuffer...