Jean-Pascal Briquet created ARTEMIS-4983:
--------------------------------------------

             Summary: Duplicate messages generated by JMX replay operation when 
AMQP broker-connection mirroring is enabled and when the queue is paging.
                 Key: ARTEMIS-4983
                 URL: https://issues.apache.org/jira/browse/ARTEMIS-4983
             Project: ActiveMQ Artemis
          Issue Type: Bug
          Components: AMQP, JMX, management
    Affects Versions: 2.36.0
            Reporter: Jean-Pascal Briquet
         Attachments: ReplayWithBrokerConnectionTest.java

*Context:*
Messages are duplicated by the replay capability that recovers messages from 
retention folder.
It happens when the broker is configured with an AMQP broker connection, 
mirroring is enabled and the queue is paging.

*Investigation notes:*
It appears that several copy of the message exist in retention folder. The 
original message is present as expected but an additional occurence with 
mirroring property "x-opt-amq-mr-id" is also found. 
The ReplayManager while scanning messages in journals of the retention folder, 
processes entries one by one, and recover messages regardless of whether they 
are duplicates originating from mirroring.

Disabling the AMQP broker connection (and mirroring) in configuration restore 
the normal behaviour of the JMX replay operation.

*Test case:*
The test case "ReplayWithBrokerConnectionTest" is provided, just add it under:

_tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/retention_

When running the test, "testReplayCorePaging" will fail.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to