activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rob Davies (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (AMQ-1946) Negative ConsumerCount
Date Mon, 22 Sep 2008 18:40:52 GMT

     [ https://issues.apache.org/activemq/browse/AMQ-1946?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Rob Davies resolved AMQ-1946.
-----------------------------

    Fix Version/s: 5.3.0
       Resolution: Fixed

Fixed by SVN revision 697937

> Negative ConsumerCount
> ----------------------
>
>                 Key: AMQ-1946
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1946
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.1.0
>         Environment: ActiveMQ 5.1
>            Reporter: Joe Fernandez
>            Assignee: Rob Davies
>            Priority: Minor
>             Fix For: 5.3.0
>
>         Attachments: DestinationStatistics.patch
>
>
> Here's the scenario.
> You have one or more active consumers for a particular queue. 
> Via the JConsole, you invoke the DestinationView's resetStatistics() method for that
queue
> The consumer count is reset to 0, even though you still have one or more active consumers
> If you shutdown the consumers and then refresh the 'Attributes' panel for the queue,
you end up with a negative value for the ConsumerCount attribute. 
> The negative number reflects the number of once active consumers.  So if you had 2 consumers,
you'll see -2. 
> If you then restart the consumers, the negative value is increased by the number of active
consumers thus leaving you with an invalid consumer count. So if you previously had 2 consumers,
when you bring 2 back up you'll end up with a 0 value for the ConsumerCount 
> This probably also holds true for the ProducerCount. 
> The resetStatistics() method shouldn't reset these two counts.  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message