activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Igor Samardzija (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMQ-5322) Message is assigned to different client with the same JMSXGroupID
Date Thu, 30 Oct 2014 14:09:35 GMT

    [ https://issues.apache.org/jira/browse/AMQ-5322?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14190097#comment-14190097
] 

Igor Samardzija commented on AMQ-5322:
--------------------------------------

I have tried solution provided by Timothy Bish but it does not work in listener scenario.
Test classes attached

Summary:
When using bellow 1024 groups everything is fine, no missfires:
[14:55:03.181] DEBUG [main] (TestGroups.java:37) - Using: MessageGroupHashBucketFactory and
setting bucketCount to 2000
[14:55:03.733] DEBUG [main] (Producer.java:52) - Sending 3 messages in 1024 groups
[14:55:04.111] DEBUG [main] (Producer.java:66) - Total messages sent: 3072
[14:55:07.111] DEBUG [main] (Consumer.java:77) - received messages per consumer: 342
[14:55:07.112] DEBUG [main] (Consumer.java:77) - received messages per consumer: 341
[14:55:07.113] DEBUG [main] (Consumer.java:77) - received messages per consumer: 341
[14:55:07.113] DEBUG [main] (Consumer.java:82) - received total messages: 1024
[14:55:07.113] DEBUG [main] (Consumer.java:84) - dataCounter (total messages): 3072
[14:55:07.113] DEBUG [main] (Consumer.java:85) - missfires: 0


But when using more, every msg goes to different consumer, there is no grouping!
[14:54:26.269] DEBUG [main] (TestGroups.java:37) - Using: MessageGroupHashBucketFactory and
setting bucketCount to 2000
[14:54:26.815] DEBUG [main] (Producer.java:52) - Sending 3 messages in 1025 groups
[14:54:27.195] DEBUG [main] (Producer.java:66) - Total messages sent: 3075
[14:54:30.196] DEBUG [main] (Consumer.java:77) - received messages per consumer: 1025
[14:54:30.198] DEBUG [main] (Consumer.java:77) - received messages per consumer: 1025
[14:54:30.199] DEBUG [main] (Consumer.java:77) - received messages per consumer: 1025
[14:54:30.199] DEBUG [main] (Consumer.java:82) - received total messages: 3075
[14:54:30.200] DEBUG [main] (Consumer.java:84) - dataCounter (total messages): 3075
[14:54:30.200] DEBUG [main] (Consumer.java:85) - missfires: 3075

> Message is assigned to different client with the same JMSXGroupID
> -----------------------------------------------------------------
>
>                 Key: AMQ-5322
>                 URL: https://issues.apache.org/jira/browse/AMQ-5322
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.9.0, 5.9.1, 5.10.0
>            Reporter: wesley lin
>         Attachments: AMQ5322Test.java, Consumer.java, GroupIdTest.java, Producer.java,
TestGroups.java
>
>
> I discovered since AMQ 5.9, message could be sent to different consumer even with JMSXGroupID
is set.
> Here is how to reproduce.
> 1. start 10 consumers to connect to server (consumer 1-10)
> 2. send 1025 messages with JMSXGroupID set from 0 - 1024 
> 3. add other 10 consumers to connect to server (consumer 11-20)
> 4. send several messages with JMSXGroup set from 0 - 1024
> Now, you can observe consumers added lately ( 11 - 20 ) will also receive messages even
JMSXGroupID have been dispatched to first consumer group( 1 - 10).
>  
> note:  In step2 , there should have more than 1024 different kind of JMSXGroupID to reproduce
this bug.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message