Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-1878

AMQP receive after transaction rollback returns messages out of order

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.10.0
    • AMQP
    • None
    • F27, openjdk version "1.8.0_171", 2.6.0-SNAPSHOT (a6c48a37c7)

    Description

      After locally updating the examples/features/standard/transactional example to utilize AMQP via Qpid JMS rather than the CORE Artemis JMS we see the following:

      Sent message: This is a text message1
      Sent message: This is a text message2
      Message received before send commit: null
      Message received after send commit: This is a text message1
      Message1 received after receive rollback: This is a text message2
      Message2 received after receive rollback: This is a text message1
      Message3 received after receive rollback: null
      Message received after receive commit: null

      Where we note that first message received after rollback has the test "message2" and the second message has the text "message1", i.e. the order is reversed.

       

      Updating the JMSTransactionTest::testRollbackSomeThenReceiveAndCommit to print out the two messages  before rollback as well as the five messages after rollback along with their corresponding MESSAGE_NUMBER properties we see:

      [main] 14:32:06,961 INFO  [org.apache.activemq.artemis.core.server] AMQ221001: Apache ActiveMQ Artemis Message Broker version 2.6.0-SNAPSHOT [localhost, nodeID=da8a1fc4-5de1-11e8-a8c7-507b9d07eb98]
      message: 1 is 1
      message: 2 is 2
      message: 1 is 5
      message: 2 is 4
      message: 3 is 3
      message: 4 is 1
      message: 5 is 2
      

      Where we can clearly see that the order when receiving after rollback is not correct.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rkieley Roddie Kieley
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: