[
https://issues.apache.org/jira/browse/AMQ-7228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16864160#comment-16864160
]
ASF subversion and git services commented on AMQ-7228:
------------------------------------------------------
Commit dc56fa3f6ea753b692b4b3a9ffacc4f82de6af74 in activemq's branch
refs/heads/master from Christopher L. Shannon (cshannon)
[ https://gitbox.apache.org/repos/asf?p=activemq.git;h=dc56fa3 ]
AMQ-7228 - Avoid unnecessary lock contention when getting pending
metrics
> Avoid lock contention when getting pending metrics from subscriptions
> ---------------------------------------------------------------------
>
> Key: AMQ-7228
> URL: https://issues.apache.org/jira/browse/AMQ-7228
> Project: ActiveMQ
> Issue Type: Improvement
> Components: Broker
> Affects Versions: 5.15.9
> Reporter: Christopher L. Shannon
> Assignee: Christopher L. Shannon
> Priority: Minor
> Fix For: 5.16.0, 5.15.10
>
>
> 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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)