QuickFIX/J

Concurrency reading / writting file store

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Default Default
  • Resolution: Fixed
  • Affects Version/s: 1.4.0
  • Fix Version/s: 1.5.0
  • Component/s: Engine
  • Labels:
    None

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.

Issue Links

Activity

Hide
Steve Bate added a comment - 25/Jan/10 1:40 PM

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.

Show
Steve Bate added a comment - 25/Jan/10 1:40 PM 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.

People

Vote (0)
Watch (0)

Dates

  • Created:
    10/Apr/09 8:11 PM
    Updated:
    12/Apr/11 3:41 PM
    Resolved:
    25/Jan/10 1:40 PM