Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.68.0
-
None
Description
From a comment by miroslav:
Race condition might be possible for two threads simultaneously accessing enableWriting and checkWritingAllowed methods:
T1 enters checkWritingAllowed and finds isWritingAllowed is false.
T2 enters enableWriting sets isWritingAllowed to true, acquires the lock and calls notifyAll().
T1 misses notify signal and blocks at the beginning of the synchronised block.
This is not critical since T2 will again call notifyAll after the next lease refresh call, but certainly, this could be improved.
Attachments
Issue Links
- links to