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

Timothy Bish resolved AMQ-2971.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 5.6.0

Find in trunk.

> DestinationStatistics.getMessages() returns 0 after reset with messages still 
> in queue
> --------------------------------------------------------------------------------------
>
>                 Key: AMQ-2971
>                 URL: https://issues.apache.org/jira/browse/AMQ-2971
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: JMX
>    Affects Versions: 5.3.0, 5.3.1, 5.3.2, 5.4.0, 5.4.1
>            Reporter: Bryan Davis
>            Priority: Minor
>             Fix For: 5.6.0
>
>
> A call to org.apache.activemq.broker.jmx.DestinationView.resetStatistics() is 
> implemented as a call to 
> org.apache.activemq.broker.region.DestinationStatistics.reset(). This call 
> sets the DestinationStatistics.messages counter to 0 even if there are 
> messages currently in the queue.
> This is functionally the same issue that was resolved for the "producers" and 
> "consumers" counters in AMQ-1946.
> The fix should be as easy as setting the doReset to false for the messages 
> counter.
> {code}
> messages.setDoReset(false); 
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to