[ https://issues.apache.org/jira/browse/AMQ-5742?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15167190#comment-15167190 ]
ruffp commented on AMQ-5742: ---------------------------- [~gtully] Because it seems the message queue counters are sometimes desynchronized on our AMQ, is it possible that bug is also present in version 5.10.2? > Destination dispatched count statistic not reflecting redelivery/redispatch > --------------------------------------------------------------------------- > > Key: AMQ-5742 > URL: https://issues.apache.org/jira/browse/AMQ-5742 > Project: ActiveMQ > Issue Type: Bug > Components: Broker > Affects Versions: 5.11.0 > Reporter: Gary Tully > Assignee: Gary Tully > Labels: dispatchedCount, jmx, statistics > Fix For: 5.11.2, 5.12.0 > > > Tracking down in intermittent failure of > org.apache.activemq.network.DemandForwardingBridgeTest.testSendThenAddConsumer > the problem turned out to be a decrement of the dispatched count when the > consumer was removed. > So before the removal, most of the time, the stat was 1, and the test passed. > But if the removal was complete, the dispatched count was decremented in > error by the unacked message count. This is wrong. The dispatched stat needs > to reflect what happened :-) Otherwise it tracks the dequeue count. -- This message was sent by Atlassian JIRA (v6.3.4#6332)