]
Yong Hao Gao updated JBMESSAGING-1885:
--------------------------------------
Duplicated message delivery in closing a connection while a
transaction is committing
-------------------------------------------------------------------------------------
Key: JBMESSAGING-1885
URL:
https://issues.jboss.org/browse/JBMESSAGING-1885
Project: JBoss Messaging
Issue Type: Bug
Components: Messaging Core
Affects Versions: 1.4.0.SP3.CP13, 1.4.8.SP1
Reporter: Yong Hao Gao
Assignee: Yong Hao Gao
Fix For: 1.4.0.SP3.CP14, 1.4.8.SP2
A message may be delivered twice when the following events happens in order:
1. A client receives a message in a transaction and is committing it. In the meantime the
connection is closed (by, for example, user shut down the client application) in another
thread.
2. At the server side, the connection closing will cause the message (not prepared) to be
cancelled back to queue. In the meantime the committing will remove the message. Both
actions are performed concurrently.
3. If the committing happens before the connection closing, transaction commit
successfully and message won't get cancelled. But if the committing happens after
connection closing, there is a chance the message is cancelled back to queue and yet the
transaction is committed successfully. So the message will be delivered twice.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: