Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-2971

DestinationStatistics.getMessages() returns 0 after reset with messages still in queue

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 5.3.0, 5.3.1, 5.3.2, 5.4.0, 5.4.1
    • 5.6.0
    • JMX
    • None

    Description

      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.

      messages.setDoReset(false); 
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bpd@keynetics.com Bryan Davis
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: