[QFJ-583] Session.forceStoreResync doesn't check persistMessages Created: 31/Mar/11  Updated: 31/Mar/11

Status: Open
Project: QuickFIX/J
Component/s: Engine
Affects Version/s: 1.5.0
Fix Version/s: None

Type: Bug Priority: Default
Reporter: Dmitri Lenna Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Environment:

Windows & Linux.



 Description   

We set the "ForceResync" to true and "PersistMessages" to false. Attempting connect to a target with a different sequence number, we get a logout message with the expected sequence number and the following is called:

(in Session.java):
private void forceStoreResync(int nextTargetMsgSeqNum, int nextSenderMsgSeqNum )

in that method, a heartbeat message is created for each missing sequence number and it's stored in the Message Store without checking if persisteMessage is true.

Is there a reason for this or this a bug? If it's a bug, I'd suggest this fix:

Line 1601:

  • if (actualSenderMsgSeqNum < nextSenderMsgSeqNum) {
    + if (actualSenderMsgSeqNum < nextSenderMsgSeqNum && persistMessages ) {

Thank you.


Generated at Sat Nov 23 12:10:36 UTC 2024 using JIRA 7.5.2#75007-sha1:9f5725bb824792b3230a5d8716f0c13e296a3cae.