Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-1982

Queue#MessageCount negative and messages stop flowing to AMQP consumer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.5.0, 2.6.2
    • 2.10.0
    • None
    • None

    Description

      I am running performance tests against EnMasse which currently uses Artemis 2.5.0.   Many millions of messages have traversed the Broker (all AMQP protocol).

       

      I have encountered 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.  The first message is seemingly lost.

      I've seen this situation once.

       

      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

       

      {
      "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
      }
      
      

      Attachments

        1. ARTEMIS-1982.log
          444 kB
          Keith Wall

        Issue Links

          Activity

            People

              jbertram Justin Bertram
              kwall Keith Wall
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m