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

Dejan Bosanac resolved AMQ-2082.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 5.3.0
         Assignee: Dejan Bosanac

This has been fixed with a patch for [AMQ-2016]. I committed the test case 
(with a few more small changes) in SVN revision 737062, so we can be sure it 
doesn't repeat in the future. The test case is modified a bit, since you 
shouldn't start your groups with sequence 0. It will automatically close the 
group and cause test to fail. Changing it to 1, makes this test pass. 

> Message Groups fail to preserve exclusivity when a new consumer is added.
> -------------------------------------------------------------------------
>
>                 Key: AMQ-2082
>                 URL: https://issues.apache.org/activemq/browse/AMQ-2082
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.2.0
>         Environment: Cent5; Java 6u11; ActiveMQ 5.2;
>            Reporter: Gordon Hopper
>            Assignee: Dejan Bosanac
>             Fix For: 5.3.0
>
>         Attachments: MessageGroupNewConsumerTest.java
>
>
> If a new consumer is added to a running system, the exclusive property of a 
> message group can be temporarily violated.
> Uploading a new unit test. An excerpt of the test results is below, which 
> shows that the message groups GrA and GrB are being handled by both consumers 
> simultaneously.
> 15:11:58,498 INFO GroupNewConsumerTest - Con2 got message GrA-5
> 15:11:58,560 INFO GroupNewConsumerTest - Con2 got message GrB-5
> 15:11:58,560 INFO GroupNewConsumerTest - Con1 got message GrB-3
> 15:11:58,623 INFO GroupNewConsumerTest - Con1 got message GrA-4
> 15:11:58,623 INFO GroupNewConsumerTest - Con2 got message GrA-6
> 15:11:58,685 INFO GroupNewConsumerTest - Con1 got message GrB-4
> 15:11:58,685 INFO GroupNewConsumerTest - Con2 got message GrB-6
> 15:11:58,748 INFO GroupNewConsumerTest - Con1 got message GrB-7
> 15:11:58,748 INFO GroupNewConsumerTest - Con2 got message GrA-7
> 15:11:58,810 INFO GroupNewConsumerTest - Con1 got message GrB-8
> 15:11:58,810 INFO GroupNewConsumerTest - Con2 got message GrA-8
> 15:11:58,873 INFO GroupNewConsumerTest - Con2 got message GrA-9
> 15:11:58,935 INFO GroupNewConsumerTest - Con2 got message GrB-9
> This may be the same issue described in:
> http://www.nabble.com/Message-groups-not-working-when-consuming-existing-messages-td18445237.html#a18445237
> Note that setting the prefetch to 1 made reproducing the issue much easier. 
> (See the unit test)
> keywords: JMSXGroup JMSXGroupID JMSXGroupSeq

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

Reply via email to