Details
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
- duplicates
-
ARTEMIS-2458 AMQP Transaction rollback causes loss of message order
- Closed
- is related to
-
ARTEMIS-2161 [AMQP] released messages lose order
- Closed