web stats

Mirth Connect

Order in queued messages is lost when redeploying or restarting mirth

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 1.3.0, 1.3.1, 1.3.2, 1.4.0, 1.5.0, 1.6.0, 1.6.1, 1.7.0, 1.7.1, 1.8.0
  • Fix Version/s: 1.8.2
  • Component/s: None
  • Labels:
    None
  • Operating System:
    Windows XP, Windows Vista, Windows Server 2003, Linux, Windows 2000, Mac OS X

Description

For a long list of queued messages, the sent order can't be guaranteed if mirth is redeployed or restarted.

This issue was originally reported and fixed as MIRTH-1118. Since then, Alberto has presented another solution that is better and should be looked into. This solution can be found in the attachments and comments of MIRTH-1118.

Activity

Hide
Jacob Brauer added a comment -
This is a cloned issue of MIRTH-1118. That issue was resolved with the first quick fix. This larger fix should be looked into for the next version.
Show
Jacob Brauer added a comment - This is a cloned issue of MIRTH-1118. That issue was resolved with the first quick fix. This larger fix should be looked into for the next version.
Hide
Alberto Torres added a comment -
With this patch the order in file queues is ensured. FileName in the queue is changed to [queue_order]__[messageId].mg This way it's possible to change the order of queue files.

A new class (FilePersistenceQueueIDGenerator.java) is needed to mantain the relation between fileNames an message id
Show
Alberto Torres added a comment - With this patch the order in file queues is ensured. FileName in the queue is changed to [queue_order]__[messageId].mg This way it's possible to change the order of queue files. A new class (FilePersistenceQueueIDGenerator.java) is needed to mantain the relation between fileNames an message id
Hide
Alberto Torres added a comment -
With this change, it's avoided an stupid exception when ther'is is a problem saving to the queue

It complements the changes made in this commit:

http://www.mirthcorp.com/community/fisheye/browse/Mirth/trunk/server/src/org/mule/util/queue/TransactionalQueueManager.java?r1=&r2=3593
Show
Alberto Torres added a comment - With this change, it's avoided an stupid exception when ther'is is a problem saving to the queue It complements the changes made in this commit: http://www.mirthcorp.com/community/fisheye/browse/Mirth/trunk/server/src/org/mule/util/queue/TransactionalQueueManager.java?r1=&r2=3593
Hide
Jacob Brauer added a comment -
Added persistenceId to every queued message file name. Changed the FilePersistenceStrategy to use the new queue file maps.
Show
Jacob Brauer added a comment - Added persistenceId to every queued message file name. Changed the FilePersistenceStrategy to use the new queue file maps.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: