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

Avoid lock contention when getting pending metrics from subscriptions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 5.15.9
    • 5.15.10, 5.16.0
    • Broker
    • None

    Description

      I noticed that there are a couple cases where some of the getters for acquiring pending metrics (and discarded count too) from subscriptions are getting blocked waiting on the pending cursor mutex in the subscription on a busy broker. This lock is unnecessary as the cursors already are synchronized internally so we should be able to get the metrics from the cursors without having to wait for the mutex which is used to prevent concurrent access for things such as dispatch, message send etc.

      Attachments

        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: