-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Description
Using this in a simple Servlet container application and ran into concurrency issues where multiple threads are trying to write to the file at the same time. Looked at the code the only write protection is a FileLock, and the java documentation states that
File locks are held on behalf of the entire Java virtual machine. They are not suitable for controlling access to a file by multiple threads within the same virtual machine. (reference)
It should be as simple as marking the io methods synchronized.
I'm happy to do a RP if its welcomed.
Metadata
Metadata
Assignees
Labels
No labels