You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@artemis.apache.org by "Gašper Čefarin (Jira)" <ji...@apache.org> on 2026/10/01 10:58:00 UTC
[jira] [Updated] (ARTEMIS-6154) Broker reports negative number of messages in queue
[ https://issues.apache.org/jira/browse/ARTEMIS-6154?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gašper Čefarin updated ARTEMIS-6154:
------------------------------------
Component/s: Web Console
> Broker reports negative number of messages in queue
> ---------------------------------------------------
>
> Key: ARTEMIS-6154
> URL: https://issues.apache.org/jira/browse/ARTEMIS-6154
> Project: Artemis
> Issue Type: Bug
> Components: Broker, Web Console
> Affects Versions: 2.55.0
> Reporter: Gašper Čefarin
> Priority: Major
> Attachments: msgcount bug.png
>
>
> Working theory is that the consumer sent too many "acks" to the broker because of a client-side bug.
> I think that regardless of the cause, broker should never report a number less than 0.
> Request:
> {code:java}
> {"type":"exec","mbean":"org.apache.activemq.artemis:broker=\"XXXXXX\"","operation":"listQueues(java.lang.String,int,int)","arguments":["{\"field\":\"name\",\"operation\":\"CONTAINS\",\"value\":\"log.e\",\"sortOrder\":\"desc\",\"sortColumn\":\"messageCount\"}",1,-1]}{code}
> Response (the relevant parts):
> {code:java}
> {"request":{"mbean":"org.apache.activemq.artemis:broker=\"LKEMS-TEST\"","arguments":
> ["{\"field\":\"name\",\"operation\":\"CONTAINS\",\"value\":\"log.e\",\"sortOrder\":\"desc\",\"sortColumn\":\"messageCount\"}",1,-1],
> ...
> \"name\":\"log.elastic\",\"address\":\"log.elastic\",\"filter\":\"\",\"durable\":\"true\",\"paused\":\
> ...
> \"routingType\":\"ANYCAST\",
> \"messagesAdded\":\"1694988\",\"messageCount\":\"-12604\",\"messagesAcked\":\"13107\",\"messagesExpired\":\"0\",
> ...
> "internalQueue\":\"false\"}],\"count\":2}","status":200}{code}
> !msgcount bug.png!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org