nmeylan created ARTEMIS-4952:
--------------------------------

             Summary: JMX countMessages: groupBy not working on AMQP messages
                 Key: ARTEMIS-4952
                 URL: https://issues.apache.org/jira/browse/ARTEMIS-4952
             Project: ActiveMQ Artemis
          Issue Type: Bug
            Reporter: nmeylan
         Attachments: image-2024-07-25-09-54-32-066.png

I encountered weird behavior with JMX _countMessages(String, String)_

When messages are produced via *AMQP *then moved to another queue and I call 
countMessages operation with a group by _{_}AMQ_ORIG_QUEUE{_} i get:
{code}
{"null": 440, "another.queue": 1600}
{code}

If I also filter by _ _AMQ_ORIG_QUEUE_ i get
{code}
{"null": 440}
{code}
 

!image-2024-07-25-09-54-32-066.png!

I was wondering why 
[message.getObjectProperty|https://github.com/apache/activemq-artemis/blob/41ec279e2240fd4a84e1c0e7902623682bc5e785/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/QueueControlImpl.java#L1164]
 is called instead of 
[message.getObjectPropertyForFilter|https://github.com/apache/activemq-artemis/blob/41ec279e2240fd4a84e1c0e7902623682bc5e785/artemis-server/src/main/java/org/apache/activemq/artemis/core/filter/impl/FilterImpl.java#L237]
 as for filtering

I did the test using getObjectPropertyForFilter instead of getObjectProperty 
and it works



--
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