Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 86376 invoked from network); 7 Apr 2011 12:22:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Apr 2011 12:22:46 -0000 Received: (qmail 89976 invoked by uid 500); 7 Apr 2011 12:22:46 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 89947 invoked by uid 500); 7 Apr 2011 12:22:46 -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 89939 invoked by uid 99); 7 Apr 2011 12:22:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Apr 2011 12:22:46 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Apr 2011 12:22:43 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id C998096C7B for ; Thu, 7 Apr 2011 12:22:05 +0000 (UTC) Date: Thu, 7 Apr 2011 12:22:05 +0000 (UTC) From: "Liam Horne (JIRA)" To: dev@activemq.apache.org Message-ID: <123977693.40582.1302178925822.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (AMQ-2746) KahaDB rollback fails when connection is closed afterwards MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AMQ-2746?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13016830#comment-13016830 ] Liam Horne commented on AMQ-2746: --------------------------------- This test case now passes in the recently released 5.5.0 . > KahaDB rollback fails when connection is closed afterwards > ---------------------------------------------------------- > > Key: AMQ-2746 > URL: https://issues.apache.org/jira/browse/AMQ-2746 > Project: ActiveMQ > Issue Type: Bug > Components: Message Store > Affects Versions: 5.3.0, 5.3.1, 5.3.2 > Environment: Windows XP SP3 > Sun JVM 1.5 > Reporter: Liam Horne > Priority: Critical > Fix For: 5.6.0 > > Attachments: KahaDBRollback.zip > > > KahaDB appears to not correctly handle rollback of a transacted session(Session.SESSION_TRANSACTED, transacted = true), when the session and connection is closed immediatly afterwards. > The messages are either being automatically committed or have been lost. > The rollback functionality on its own works correctly, its just the step of closing all our connections which must be applying unexpected behavior. > Switching to AMQ persistance adapter does not have this issue and will roll back the messages succesfully. > Attached is a class that demonstrates this behavior, and the activemq configuration file used in a 5.3.2 activeMQ instance > General Test Case Flow > -------------------------------------------------------- > -Receives 5 messages on the OnMessage() method > -call session.commit() > -Receives 5 messages on the OnMessage() method > -set messagelistener(null) > -call connection.stop() > -call session.rollback() > -call session.close() > -Set up connection and consumer to same durable subscriber > -Confirm whether the messages have been rolled back succesfully when we receive the next 5 messages. > If the Test Case fails on rollback it will display the following message to the console for each message. > "ERROR: Failed Rollback expected version:2 actual version:3 on message:0" > Test Case Setup > ------------------------------------------------------ > -Zipped the eclipse project folder containing this test case > -Ensure the "CONNECTION" static string in ActiveMQTest.java will point to your running ActiveMQ instance. > -Run the ActiveMQTest main() method. > Have not tested in versions below 5.3.0 -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira