Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-1940

Negative queue size (reproducible)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 5.2.0
    • 5.15.0, 5.14.4
    • Broker
    • None
    • Found on Windows but reproduced under Linux

    • Regression

    Description

      When you "purge" queue from web admin console, it zeroes queue message
      counter. But if you have an active consumer at that time which
      pre-fetched messages than your consumer will keep sending ack as it
      process messages from its buffer. ActiveMQ will keep decrement counter
      upon receiving each ack. So when consumer is done queue will show
      MINUS<consumer buffer size>.

      Attachments

        1. Main.java
          4 kB
          Vadim Chekan
        2. QueuePurgeTest.java.diff.txt
          4 kB
          Bruce Snyder
        3. Picture 6.png
          121 kB
          Brian Moran

        Issue Links

          Activity

            People

              cshannon Christopher L. Shannon
              vchekan Vadim Chekan
              Votes:
              5 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: