activemq-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (AMQ-5813) TopicSubscriptions report a negative countBeforeFull statistic
Date Fri, 05 Jun 2015 18:14:00 GMT


ASF GitHub Bot commented on AMQ-5813:

Github user asfgit closed the pull request at:

> TopicSubscriptions report a negative countBeforeFull statistic
> --------------------------------------------------------------
>                 Key: AMQ-5813
>                 URL:
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.11.1
>            Reporter: Christopher L. Shannon
>            Priority: Minor
>             Fix For: 5.12.0
> 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

View raw message