activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Remo Gloor (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMQ-4878) Message can be acknowledged succesfully it two different transactions
Date Wed, 13 Nov 2013 14:19:22 GMT

     [ https://issues.apache.org/jira/browse/AMQ-4878?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Remo Gloor updated AMQ-4878:
----------------------------

    Affects Version/s: 5.9.0

> Message can be acknowledged succesfully it two different transactions
> ---------------------------------------------------------------------
>
>                 Key: AMQ-4878
>                 URL: https://issues.apache.org/jira/browse/AMQ-4878
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 5.9.0
>            Reporter: Remo Gloor
>
> - Two clients are connected to AMQ listening on the same queue. 
> - When a message is sent to that queue it is processed and acknowledged by one of these
clients in a transaction. After processing it does a 2 phase commit. 
> - The connection is lost right after prepare is sent. The failover now reconnects and
replays these messages and sends a commit later.
> - After the connection is lost AMQ sends the same message to the other client due to
the connection loss (most likely because the prepare did not arrive). This client creates
another transaction, processes and acknowledges the message. The transaction is now prepared
and commit.
> The problem is that the same message is processed in two clients succesfully. Both were
able to acknowledge the message in two different transactions. I'd expect that just one (the
first?) prepare that arrives at the server is succesful. The other must fail so that all the
work done on that client (e.g. DB modifications and sent messages) is reverted by this second
transaction.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message