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

Negative queue size (reproducible)

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 5.2.0
    • Fix Version/s: 5.15.0, 5.14.4
    • Component/s: Broker
    • Labels:
      None
    • Environment:

      Found on Windows but reproduced under Linux

    • Regression:
      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. Picture 6.png
          121 kB
          Brian Moran
        3. QueuePurgeTest.java.diff.txt
          4 kB
          Bruce Snyder

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: