Howard Gao created ARTEMIS-4959:
-----------------------------------
Summary: moveMessages operation can move more messages than max
messageCount
Key: ARTEMIS-4959
URL: https://issues.apache.org/jira/browse/ARTEMIS-4959
Project: ActiveMQ Artemis
Issue Type: Bug
Components: management
Affects Versions: 2.35.0
Reporter: Howard Gao
Assignee: Howard Gao
When paging and many messages in a queue, the following is observed:
$ bin/artemis producer --user admin --password admin --url
tcp://localhost:61616 --message-count 10000 --message-size 10240 --destination
queue://FOO
...
$ curl -XPOST -H "Content-Type: application/json" -H "Origin: http://localhost"
--user "admin:admin" -d
'{"type":"exec","mbean":"org.apache.activemq.artemis:broker=\"0.0.0.0\",component=addresses,address=\"FOO\",subcomponent=queues,routing-type=\"anycast\",queue=\"FOO\"","operation":"moveMessages(int,java.lang.String,java.lang.String,boolean,int)","arguments":[500,"","DLQ",false,500]}'
...
{"request":{"mbean":"org.apache.activemq.artemis:address=\"FOO\",broker=\"0.0.0.0\",component=addresses,queue=\"FOO\",routing-type=\"anycast\",subcomponent=queues","arguments":[500,"","DLQ",false,500],"type":"exec","operation":"moveMessages(int,java.lang.String,java.lang.String,boolean,int)"},"value":8630,"timestamp":1718395680,"status":200}
Note that the messageCount for the moveMessages operation was 500, but in
reality 8630 messages were moved (verified with queue stats). This does not
seem to happen for queues with a low queue depth.
--
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