activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonas Lim (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AMQ-1006) RoundRobinDispatchPolicy divides uneven
Date Mon, 20 Nov 2006 06:25:02 GMT
    [ https://issues.apache.org/activemq/browse/AMQ-1006?page=comments#action_37495 ] 
            
Jonas Lim commented on AMQ-1006:
--------------------------------

Thanks! 

patch applied to  : 

trunk:  477066
4.1 branch:  477068

> 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

        

Mime
View raw message