[ 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 [EMAIL PROTECTED] 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