DestinationStatistics.getMessages() returns 0 after reset with messages still
in queue
--------------------------------------------------------------------------------------
Key: AMQ-2971
URL: https://issues.apache.org/activemq/browse/AMQ-2971
Project: ActiveMQ
Issue Type: Bug
Components: JMX
Affects Versions: 5.4.1, 5.4.0, 5.3.2, 5.3.1, 5.3.0
Reporter: Bryan Davis
Priority: Minor
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.
-
You can reply to this email to add a comment to the issue online.