You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Christopher L. Shannon (JIRA)" <ji...@apache.org> on 2015/06/01 20:45:21 UTC
[jira] [Commented] (AMQ-5813) TopicSubscriptions report a negative
countBeforeFull statistic
[ https://issues.apache.org/jira/browse/AMQ-5813?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14567774#comment-14567774 ]
Christopher L. Shannon commented on AMQ-5813:
---------------------------------------------
I made a quick change the PR to fix a small typo in the unit test class.
> TopicSubscriptions report a negative countBeforeFull statistic
> --------------------------------------------------------------
>
> Key: AMQ-5813
> URL: https://issues.apache.org/jira/browse/AMQ-5813
> Project: ActiveMQ
> Issue Type: Bug
> Components: Broker
> Affects Versions: 5.11.1
> Reporter: Christopher L. Shannon
> Priority: Minor
>
> The {{countBeforeFull}} method that is part of {{Subscription}} is supposed to return the number of messages that the subscription can accept before it is full. This works fine for Durables and Queues (Prefetch subscriptions) where the value is a positive value when it can accept more messages. Usually the value will report the size of prefetch minus any prefetch extension and dispatchedQueueSize.
> However, for a {{TopicSubscription}} this value is reversed and it is subtracting prefetch from dispatchedQueueSize. For example, if the prefetch policy is set at 1000, this method will report "-1000" when calling countBeforeFull.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)