Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 84445 invoked from network); 10 Sep 2008 09:35:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Sep 2008 09:35:15 -0000 Received: (qmail 33785 invoked by uid 500); 10 Sep 2008 09:35:11 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 33748 invoked by uid 500); 10 Sep 2008 09:35:11 -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 33737 invoked by uid 99); 10 Sep 2008 09:35:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Sep 2008 02:35:11 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Sep 2008 09:34:20 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id AD688234C1D3 for ; Wed, 10 Sep 2008 02:34:52 -0700 (PDT) Message-ID: <571329793.1221039292709.JavaMail.jira@brutus> Date: Wed, 10 Sep 2008 02:34:52 -0700 (PDT) From: "Mario Siegenthaler (JIRA)" To: dev@activemq.apache.org Subject: [jira] Commented: (AMQ-1710) Failing over in JDBC Master/Slave topology does not preserve transaction state In-Reply-To: <347248383.1210018183511.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQ-1710?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45581#action_45581 ] Mario Siegenthaler commented on AMQ-1710: ----------------------------------------- Warning: Do not apply my patch before AMQ-1925 is resolved, else things will go badly wrong (undelivered messages are deleted from the store) > Failing over in JDBC Master/Slave topology does not preserve transaction state > ------------------------------------------------------------------------------ > > Key: AMQ-1710 > URL: https://issues.apache.org/activemq/browse/AMQ-1710 > Project: ActiveMQ > Issue Type: Bug > Components: Broker, Transport > Affects Versions: 4.1.2 > Environment: Tested on 4.1.1 and 4.1.2 > Reporter: Rob Bugh > Attachments: AMQ-1710.patch, FailoverTest.java > > > Recreate steps: > 1) Start two brokers in JDBC Master/Slave topology > 2) Create an app that puts two or more messages in a queue (two messages are sufficient). Give each message a JMXGroupID to force them to go to the same consumer. > 3) Create another app that creates two connection to the broker and on each connection creates a session and a consumer with a unique clientID. Each should attempt to consume messages from the queue defined above. > 4) Run the app and when the first message is consumed stop the master. Failover will occur and the slave becomes the new master. > 5) Notice that when the transport resumes in the client that received the first message an exception like the following is thrown: > javax.jms.JMSException: Transaction 'TX:ID:HOSTNAME-3289-1210016021661-0:1:1' has not been started. > 6) Notice that the second consumer now recieves both messages. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.