Uploaded image for project: 'AMQ Broker'
  1. AMQ Broker
  2. ENTMQBR-8769

Filters on JMX methods does not seem to work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Undefined Undefined
    • None
    • AMQ 7.11.3.GA
    • management, monitoring
    • None
    • False
    • None
    • False
    • Moderate

      Several JMX methods that work on queues accept a filter as a parameter. For example: listMessages(String) or countMessages(String). It does not seem to work.

      I have put 1000 'standard' messages (by running artemis producer) in a queue TEST and also added 10 large messages to the queue.

      I tried some identifiers from here:
      https://activemq.apache.org/components/artemis/documentation/latest/filter-expressions.html

      It works with numbers. I tried:
      listMessages(String)
      AMQTimestamp=1706689255000 works and finds the message. AMQExpiration=0 also seems to work.

      But not with string:
      AMQDurable=DURABLE does not show anything (even though there are durable messages in the queue). AMQAddress=TEST also shows nothing.

      But with numbers it is also strange:
      countMessages(String)
      AMQSize>0 returns 200. But there are 1010 messages in the queue.

      1) The filter does not seem to work with string
      2) With numbers, it works, but filters maximum 200 messages

      I would also like to use other message properties. How to get them to work? I put 10 large messages in the queue but countMessages(_AMQ_LARGE_SIZE > 0) returns 0. Given that I don't know how to use AMQSize either I have no idea how to filter large messages.

              Unassigned Unassigned
              rhn-support-zstrmisk Zdenek Strmiska
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: