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

Messages not redistributed to consumers with matching filters when local non matching consumers are present

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.6.3
    • 2.19.0
    • AMQP, Broker
    • None

    Description

      We are experiencing the following issue:

      1. We configure an Artemis cluster with ON_DEMAND message loadbalacing and message redistribution enabled.
      2. We then connect a single consumer to queues.queue1 on node1 that has a message filter that does NOT match a given message.
      3. Then we send a message to queues.queue1 on node1.
      4. Then we connect a consumer to queues.queue1 on node2 that has a filter matching the message we sent.

      We now would expect that the message on node1 currently not having any matching consumers on node1 to be forwarded or redistributed to node2 where a matching consumer exists.
      However that is not happening the consumer on node2 does not receive the message and in our case the message on node1 expires after some time despite a matching consumer is connected to the cluster.

      In the described scenario when we disconnect the consumer on node1 (that does not match the message anyway) the message is redistributed to node2 and consumed by the matching consumer.

      If no consumer was connected to node1, a message is sent to node1 and only then a matching consumer is connected to node2 the message is forwarded to node2 as expected.

      So I guess the core problem is that message redistribution of messages on node1 is not triggered when a matching consumer is connected to node2 while a any consumer already exists on node1 no matter if it actually matches the given message.

      I attached a maven test case that illustrates the issue.

      Attachments

        1. artemis-2007.zip
          4 kB
          Sebastian T
        2. AMQ2007Test.java
          17 kB
          Gary Tully

        Activity

          People

            gtully Gary Tully
            seb Sebastian T
            Votes:
            2 Vote for this issue
            Watchers:
            5 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 - 14h 10m
                14h 10m