Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E582410A92 for ; Wed, 13 Nov 2013 14:19:26 +0000 (UTC) Received: (qmail 22684 invoked by uid 500); 13 Nov 2013 14:19:23 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 22612 invoked by uid 500); 13 Nov 2013 14:19:23 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 22600 invoked by uid 99); 13 Nov 2013 14:19:22 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Nov 2013 14:19:22 +0000 Date: Wed, 13 Nov 2013 14:19:22 +0000 (UTC) From: "Remo Gloor (JIRA)" To: dev@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMQ-4878) Message can be acknowledged succesfully it two different transactions MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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)