[QFJ-429] Concurrency reading / writting file store Created: 10/Apr/09  Updated: 15/Nov/12  Resolved: 25/Jan/10

Status: Closed
Project: QuickFIX/J
Component/s: Engine
Affects Version/s: 1.4.0
Fix Version/s: 1.5.0

Type: Bug Priority: Default
Reporter: Paul-Henri Giraud Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Duplicate
is duplicated by QFJ-534 Resend Request Synchronization Patch Closed

 Description   

In some case, two thread access the file store: one for writing outgoing messages, another one for reading old messages (e.g. while a sequence resend).
This can lead to a concurrency using the underlying file access and corrupt the store.
The file store has to use two separate file access to prevent this.
Patch available.



 Comments   
Comment by Steve Bate [ 25/Jan/10 ]

SVN #928

Interesting. I've only seen this type of Java file-writing behavior when writing/reading from multiple processes. I've never seen it with multiple threads in a single process. Is this easy to reliably reproduce? If so, it would be good to create a unit test to demonstrate it.

Generated at Sun May 19 17:34:19 UTC 2024 using JIRA 7.5.2#75007-sha1:9f5725bb824792b3230a5d8716f0c13e296a3cae.