Return-Path: Delivered-To: apmail-geronimo-activemq-dev-archive@www.apache.org Received: (qmail 93811 invoked from network); 15 Jun 2006 04:44:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Jun 2006 04:44:07 -0000 Received: (qmail 50268 invoked by uid 500); 15 Jun 2006 04:44:07 -0000 Delivered-To: apmail-geronimo-activemq-dev-archive@geronimo.apache.org Received: (qmail 50156 invoked by uid 500); 15 Jun 2006 04:44:06 -0000 Mailing-List: contact activemq-dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-dev@geronimo.apache.org Delivered-To: mailing list activemq-dev@geronimo.apache.org Received: (qmail 50142 invoked by uid 99); 15 Jun 2006 04:44:06 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Jun 2006 21:44:06 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Jun 2006 21:44:05 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BCE26714204 for ; Thu, 15 Jun 2006 04:42:51 +0000 (GMT) Message-ID: <6117271.1150346571769.JavaMail.jira@brutus> Date: Thu, 15 Jun 2006 04:42:51 +0000 (GMT+00:00) From: "Hiram Chirino (JIRA)" To: activemq-dev@geronimo.apache.org Subject: [jira] Resolved: (AMQ-268) Queue + Transaction: ordering/redelivery MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ https://issues.apache.org/activemq/browse/AMQ-268?page=all ] Hiram Chirino resolved AMQ-268: ------------------------------- Fix Version: 4.0 Resolution: Fixed 4.0 gives it back to you in the same order. > Queue + Transaction: ordering/redelivery > ---------------------------------------- > > Key: AMQ-268 > URL: https://issues.apache.org/activemq/browse/AMQ-268 > Project: ActiveMQ > Type: Improvement > Versions: 3.1, 3.0 > Reporter: Paul Smith > Fix For: 4.0 > Attachments: TransactionRollbackTest.zip > > > [This was posted directly to the dev@activemq.codehaus.org mailing list while JIRA was down, reposting here] > My understanding is that Queue's are ordered, FIFO things. We have an interesting scenario here processing a message from a Queue can periodically cause an error because of local conditions. What we'd assumed is that we could get the message out of the queue using transactions, and should the error processing the message fail, rollback, wait a bit, then go again. In our current scenario it is not critical of the ordering, but this has highlighted something that may be required for a different scenario later on. > We set this up using ActiveMQ 3.0 and also tested using the latest snapshot, but after a "failure" (rollback), messages after the failure message get delivered first, and then when it does get around to redelivering the failure message it is always the wrong message redelivered. > we setup a test case to reproduce the scenario. > Now, this could well highlight a vague area of the spec, or even our programming errors. All comments appreciated. > (see attached test case, with log output you get when you run it, you will see that Message 3 is rolled back, but it redelivers message 2 instead, and only after putting Message 4 & 5 through) > cheers, > Paul Smith -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/activemq/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira