Keith Wall created ARTEMIS-1982: ----------------------------------- Summary: Queue#MessageCount negative and messages stop flowing to AMQP consumer Key: ARTEMIS-1982 URL: https://issues.apache.org/jira/browse/ARTEMIS-1982 Project: ActiveMQ Artemis Issue Type: Bug Affects Versions: 2.5.0 Reporter: Keith Wall
I am running performance tests against EnMasse which current uses Artemis 2.5.0. Many millions of messages have traversed the Broker (all AMQP protocol). I have encounter a situation where messages have stopped flowing to the AMQP consumer. On inspection of the Artemis console, I notice that statistics including the MessageCount have gone negative (-99). One in this state, I notice if I produce one message then attach a consumer, no message flows. However if add two messages to the queue, the consumer gets only the 2nd message. bash-4.2$ curl --user admin:admin -k [https://localhost:8161/console/jolokia/read/org.apache.activemq.artemis:broker=%22broker-0%22,component=addresses,address=%22queue%22,subcomponent=queues,routing-type=%22anycast%22,queue=%22queue%22] {code:javascript} { "request": { "mbean": "org.apache.activemq.artemis:address=\"queue\",broker=\"broker-0\",component=addresses,queue=\"queue\",routing-type=\"anycast\",subcomponent=queues", "type": "read" }, "value": { "User": "null", "MaxConsumers": -1, "Address": "queue", "Exclusive": false, "PurgeOnNoConsumers": false, "DurableDeliveringSize": 0, "PersistentSize": -68112, "ScheduledCount": 0, "MessagesKilled": 99, "Name": "queue", "DurableScheduledCount": 0, "DurableMessageCount": 0, "ExpiryAddress": null, "ID": 6, "FirstMessageAsJSON": "[{}]", "RoutingType": "ANYCAST", "Paused": false, "DurableDeliveringCount": 0, "FirstMessageAge": null, "DeadLetterAddress": "DLQ", "DurablePersistentSize": 0, "MessagesAdded": 39470041, "ConsumerCount": 1, "DeliveringCount": -99, "MessagesAcknowledged": 39469942, "MessagesExpired": 0, "DeliveringSize": -68112, "LastValue": false, "Temporary": false, "FirstMessageTimestamp": null, "Filter": null, "ScheduledSize": 0, "Durable": true, "DurableScheduledSize": 0, "MessageCount": -99 }, "timestamp": 1532007015, "status": 200 } {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)