]
Howard Gao closed JBMESSAGING-1643.
-----------------------------------
Resolution: Done
Ordering Group incorrect handling on Consumer close
---------------------------------------------------
Key: JBMESSAGING-1643
URL:
https://jira.jboss.org/jira/browse/JBMESSAGING-1643
Project: JBoss Messaging
Issue Type: Bug
Components: Messaging Core
Affects Versions: 1.4.0.SP3.CP08, 1.4.4.GA
Environment: all platform
Reporter: Howard Gao
Assignee: Howard Gao
Fix For: 1.4.0.SP3.CP09, 1.4.5.GA
On session close, all unacknowledged messages will be cancelled. For ordering group
messages, if messages are cancelled, it will be redelivered first.
But currently if the message is cancelled, the message is released from the ordering
group control, making the second message being delivered. That's broken.
The reason for the wrong order of delivery:
1. msg A is delivered and commited. then B is delivered to client.
2. consumer close() cause B cancelled back to queue. But it is wrongly removed from the
linked list.
3. On next deliver, B cannot be delivered because it is not the first in the ordering
group (B still an ordering group message). So C is delivered to client.
4. After C is committed, D is delivered to the client and committed.
5. then B is delivered as the whole ordering group is empty now.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: