You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Rob Davies (JIRA)" <ji...@apache.org> on 2009/09/04 20:59:20 UTC

[jira] Updated: (AMQ-2017) Topic slow consumer message discarding broken

     [ https://issues.apache.org/activemq/browse/AMQ-2017?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rob Davies updated AMQ-2017:
----------------------------

    Fix Version/s: 5.4.0

> Topic slow consumer message discarding broken
> ---------------------------------------------
>
>                 Key: AMQ-2017
>                 URL: https://issues.apache.org/activemq/browse/AMQ-2017
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.2.0
>            Reporter: Teemu Torma
>             Fix For: 5.4.0
>
>
> TopicSubscription class misbehaves when dispatching matched messages after the first message has been discarded.  The problem is that difference between dispatch and dequeue counters is used to determine if the dispatch queue is full, but discarding messages also increments dequeue counter, breaking the dispatching logic.  Effectively every other message is dispatched anyway to the consumer side.
> The mismatch in counting can also be observed in jconsole; the topic dispatched queue size starts ticking down for every discarded message.
> A quick test shows that not incrementing dequeue counter in discard method fixes this problem, but I don't know if it has any other side effects.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.