[ 
https://issues.apache.org/jira/browse/ARTEMIS-4959?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17900143#comment-17900143
 ] 

ASF subversion and git services commented on ARTEMIS-4959:
----------------------------------------------------------

Commit 20a115fcb1265406576d1fa2c870e5e90f263a10 in activemq-artemis's branch 
refs/heads/main from Clebert Suconic
[ https://gitbox.apache.org/repos/asf?p=activemq-artemis.git;h=20a115fcb1 ]

ARTEMIS-4959 speeding up testMoveMessagesInPagingMode

This unit test was sending too many messages, and taking too long making it 
more a stress test


> 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.36.0
>            Reporter: Howard Gao
>            Assignee: Howard Gao
>            Priority: Major
>             Fix For: 2.37.0
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> 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


Reply via email to