[QFJ-290] FileStore.messageIndex is not cleared on reset Created: 15/Jan/08  Updated: 07/Aug/08  Resolved: 01/Feb/08

Status: Closed
Project: QuickFIX/J
Component/s: Engine
Affects Version/s: 1.2.1, 1.3.0
Fix Version/s: 1.3.2

Type: Bug Priority: Minor
Reporter: Rhys Yarranton Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Duplicate
is duplicated by QFJ-321 PersistMessages config parameter defa... Closed

 Description   

FileStore.messageIndex is not cleared on reset. As a result, get(int, int, Collection) may include "junk" entries for sequence numbers that used to be known to the store but are no longer. You can usually work around this by being careful not to peek beyond the current sequence number.

Suggested fix would be to add
messageIndex.clear()
to the top of initializeMessageIndex()

tx


Generated at Sat Nov 23 00:07:59 UTC 2024 using JIRA 7.5.2#75007-sha1:9f5725bb824792b3230a5d8716f0c13e296a3cae.