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

Pending Queue Counter is incorrect when using durable topics

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.8.0
    • 5.9.0, 5.10.0
    • Broker
    • None
    • Regression

    Description

      When using a durable topics the Pending Queue Counter provides an incorrect value for pending messages.

      Steps to recreate

      Set up the durable subscriber

      ant consumer -Durl=tcp://localhost:61616 -Dtopic=true -Dsubject=MYSUB -Ddurable=true -Dmax=2
      

      Stop the subscriber

      Send 20 persistent messages

      ant producer -Ddurable=true -Durl=tcp://localhost:61616 -Dtopic=true -Dsubject=MYSUB -Dmax=20
      

      Consume 2 messages

      ant consumer -Durl=tcp://localhost:61616 -Dtopic=true -Dsubject=MYSUB -Ddurable=true -Dmax=2
      

      View the counter stats.

      The result is the following:

      Pending Queue Size = 38
      Dispatched Queue Size = 0
      Dispatched Counter = 20
      Enqueue Counter = 20
      Dequeue Counter = 2
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            gtully Gary Tully
            tabish Timothy A. Bish
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment