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

KahaDB durable subscription stats can go negative on duplicate acks

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.18.3, 6.0.1
    • 6.1.0, 5.18.4, 5.17.7, 6.0.2
    • Broker
    • None

    Description

      AMQ-6375 added support for non blocking durable subscription statistics to KahaDB to track pending message count and message size metrics. By default this is disabled and can be enabled with the enableSubscriptionStatistics flag on KahaDB.

      On rare occasions I have noticed that sometimes the metrics may got negative or be slightly off. I found an area where it's possible if a duplicate ack comes in then in some scenarios the metrics may be deprecated twice. This issue only applies to the subscription stats and not the store statistics for the overall destination as those stats would only get decremented once when the message is removed from the order index.

      Attachments

        Issue Links

          Activity

            People

              cshannon Christopher L. Shannon
              cshannon Christopher L. Shannon
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1.5h
                  1.5h