activemq-dev mailing list archives

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


Remo Gloor updated AMQ-4878:

    Affects Version/s: 5.9.0

> Message can be acknowledged succesfully it two different transactions
> ---------------------------------------------------------------------
>                 Key: AMQ-4878
>                 URL:
>             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

This message was sent by Atlassian JIRA

View raw message