You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Jonas Lim (JIRA)" <ji...@apache.org> on 2006/11/20 07:25:02 UTC

[jira] Resolved: (AMQ-1006) RoundRobinDispatchPolicy divides uneven

     [ https://issues.apache.org/activemq/browse/AMQ-1006?page=all ]

Jonas Lim resolved AMQ-1006.
----------------------------

    Fix Version/s: 4.1.2
                   4.3.0
       Resolution: Fixed

> RoundRobinDispatchPolicy divides uneven
> ---------------------------------------
>
>                 Key: AMQ-1006
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1006
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 4.0.2
>            Reporter: Holger Bruch
>            Priority: Minor
>             Fix For: 4.1.2, 4.3.0
>
>         Attachments: RoundRobinDispatchPolicyDivide.patch
>
>
> In case that multiple consumers with different message selectors are registered for the same destination, messages are not evenly divided.
> To reproduce, register 2 consumers for prio 9, one for prio 4. Of 1000 messages with prio 9 both prio 9 consumers should receive 500. Actually, the first consumer gets 667 messages, the second 333.
> This is caused by the consumer shifting strategy in the RoundRobinDispatchPolicy which rotates consumers, even if they did not match.
> The attached file contains a testcase illustrating the behavior and a patch for RoundRobinDispatchPolicy, that shifts the first matching consumer instead of the first.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira