Qpid
  1. Qpid
  2. QPID-3855

[Java broker] the activeConsumerCount for a queue can be incorrect for certain types of subscriptions

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.6, 0.7, 0.8, 0.9, 0.10, 0.11, 0.12, 0.13, 0.14
    • Fix Version/s: 0.15
    • Component/s: Java Broker
    • Labels:
      None

      Description

      activeConsumerCount on a queue is incorrect for certain types of subscriptions. When registering a new subscription on the queue, the activeConsumerCount is incremented. However, some subscriptions are not actually active when they are registered, and only become so later. The queue is ntoifed of this state change as it is a stateChangeListener for registered subscriptions, meaning the activeConsumerCount is incremented again and as a result the count shown can be innacurate. When registering a new subscription the count should only be incremented if it is already active.

        Activity

        Keith Wall made changes -
        Status Ready To Review [ 10006 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Robbie Gemmell made changes -
        Assignee Robbie Gemmell [ gemmellr ] Keith Wall [ k-wall ]
        Robbie Gemmell made changes -
        Status In Progress [ 3 ] Ready To Review [ 10006 ]
        Robbie Gemmell made changes -
        Field Original Value New Value
        Status Open [ 1 ] In Progress [ 3 ]
        Robbie Gemmell created issue -

          People

          • Assignee:
            Keith Wall
            Reporter:
            Robbie Gemmell
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development