From dev-return-10605-apmail-activemq-dev-archive=activemq.apache.org@activemq.apache.org Mon May 05 20:10:09 2008 Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 3771 invoked from network); 5 May 2008 20:10:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 May 2008 20:10:08 -0000 Received: (qmail 68484 invoked by uid 500); 5 May 2008 20:10:08 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 68449 invoked by uid 500); 5 May 2008 20:10:08 -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 68438 invoked by uid 99); 5 May 2008 20:10:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 May 2008 13:10:08 -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; Mon, 05 May 2008 20:09:23 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8C4B5234C107 for ; Mon, 5 May 2008 13:09:43 -0700 (PDT) Message-ID: <1445588162.1210018183573.JavaMail.jira@brutus> Date: Mon, 5 May 2008 13:09:43 -0700 (PDT) From: "Rob Bugh (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=42545#action_42545 ] Rob Bugh commented on AMQ-1710: ------------------------------- I've attached a test case that implements the recreate steps described above. > 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: 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.