Uploaded image for project: 'AMQ Broker'
  1. AMQ Broker
  2. ENTMQBR-2707

Transaction rollback ordering is broken with AMQP

    XMLWordPrintable

Details

    • +
    • Hide
      Previously, if AMQP messages in a pre-fetch buffer were returned to the queue, unacknowledged messages were returned in the wrong order. As a result of this issue, clients might later consume these messages in the wrong order, negatively affecting applications for which message ordering was important. This issue is resolved. Pre-fetched AMQP messages are always returned to the queue in the original order.
      Show
      Previously, if AMQP messages in a pre-fetch buffer were returned to the queue, unacknowledged messages were returned in the wrong order. As a result of this issue, clients might later consume these messages in the wrong order, negatively affecting applications for which message ordering was important. This issue is resolved. Pre-fetched AMQP messages are always returned to the queue in the original order.
    • Documented as Resolved Issue
    • ARTEMIS-2458
    • Verified in a release
    • Hide

      Attached is the test case class,
      Copy the below into the following location of artemis source

      \integration-tests\src\test\java\org\apache\activemq\artemis\tests\integration\amqp

      Show
      Attached is the test case class, Copy the below into the following location of artemis source \integration-tests\src\test\java\org\apache\activemq\artemis\tests\integration\amqp

    Description

      When rolling back the message order is corrupted.

      The issue is able to easily recreate using QPID's own Test suite, but pointing it at Artemis (AMQ7) instead of ActivMQ 5
      test in question that passes when pointing to ActiveMQ5, but fails and re-creates the ordering issue seen.

      org.apache.qpid.jms.transactions.JmsTransactedConsumerTest.testReceiveSomeThenRollback
      
      activemq5: passes
      artemis: fails - java.lang.AssertionError: Unexpected order of messages: [5, 4, 3, 1, 2]
      

      Attachments

        Issue Links

          Activity

            People

              csuconic@redhat.com Clebert Suconic
              rhn-support-vgohel Viral Gohel
              Tiago Bueno Tiago Bueno
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: