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

Messages are not deleted in the mirror broker if they were distributed from the main to another broker in the cluster

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.19.1, 2.21.0
    • 2.22.0
    • AMQP
    • None
    • JDK 8
      JDK 11
      Windows 10
      Ubuntu 20.04

    Description

      When testing Mirroring, I found that it works unstable for brokers that are in a cluster. Messages are not deleted in the mirror broker if they were distributed (initial distribution and redistribution too) from the main to another broker in the cluster.

      I have the following scheme, brokers A1 and A2 into clusters and A1 has mirror B1.

      Steps

      1. Create 3 brokers (A1, A2, B1) with default user (root) and password (root) by artemis create
      2. Replace their configuration with the configuration from the attachment (brokerA1.xml and etc.)
      3. Run this brokers artemis run
      4. Run ArtemisConsumer from maven project ArtemisClusterMirror.rar in attachment
      5. Run ArtemisProducer from maven project ArtemisClusterMirror.rar in attachment
      6. Wait for the producer to finish
      7. Turn off consumer
      8. Compare the number of messages queue Q1 in brokers A1 and B1

      Expected Behavior:

      The number of messages in the queue Q1 is the same (0), it is empty

      Received Behavior:

      The queue Q1 in mirror broker B1 contains 50 messages that were sent by the producer. There were no signals to delete these messages from broker A1 when moving them to another cluster broker A2 (with consumer). Screenshots in attachment.

      It is also not clear why the internal cluster queues with the notif prefix are mirrored, in theory they should not. They also often contain messages that are not in the main broker.



      Attachments

        1. image-2022-04-01-18-05-27-639.png
          73 kB
          Mikhail Lukyanov
        2. image-2022-04-01-18-05-12-973.png
          73 kB
          Mikhail Lukyanov
        3. image-2022-04-01-18-04-42-130.png
          75 kB
          Mikhail Lukyanov
        4. image-2022-04-01-18-04-36-472.png
          75 kB
          Mikhail Lukyanov
        5. ArtemisClusterMirror.rar
          7 kB
          Mikhail Lukyanov
        6. brokerB1.xml
          10 kB
          Mikhail Lukyanov
        7. brokerA2.xml
          11 kB
          Mikhail Lukyanov
        8. brokerA1.xml
          11 kB
          Mikhail Lukyanov

        Activity

          People

            Unassigned Unassigned
            lukymiv Mikhail Lukyanov
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 4h 10m
                4h 10m