ActiveMQ
  1. ActiveMQ
  2. AMQ-1940

Negative queue size (reproducible)

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 5.2.0
    • Fix Version/s: 5.3.0
    • 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>.

      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:
              Rob Davies
              Reporter:
              Vadim Chekan
            • Votes:
              5 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development