[
https://issues.apache.org/jira/browse/ARTEMIS-2218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16739340#comment-16739340
]
Vuk Vasic edited comment on ARTEMIS-2218 at 1/10/19 12:13 PM:
--------------------------------------------------------------
Reproducing the error is very easy:
Create 1 consumer and 2 producers (Both having subscription name "abc" and
topic "sample1". It works.
After that create any shared subscription and it won't work over AMQP.
For example
Create 1 consumer and 2 producers (Both having subscription name "cba" and
topic "sample2". It does not works.I will try to provide sample in .Net soon
and post it here.
If i create new instance of Artemis and go other way around the first shared
subscription will work any other won't. Also existing shared subscription will
not work after creating second one.
This work regulary on Artemis 2.1.0, 2.0.0 and 1.5.6
was (Author: vukvasic):
Reproducing the error is very easy:
Create 1 consumer and 2 producers (Both having subscription name "abc" and
topic "sample1". It works.
After that create any shared subscription and it won't work over AMQP.
For example
Create 1 consumer and 2 producers (Both having subscription name "cba" and
topic "sample2". It does not works.I will try to provide sample in .Net soon
and post it here.
This work regulary on Artemis 2.1.0, 2.0.0 and 1.5.6
> AMQP 1.0 issue with Shared Subscription
> ---------------------------------------
>
> Key: ARTEMIS-2218
> URL: https://issues.apache.org/jira/browse/ARTEMIS-2218
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Components: AMQP
> Affects Versions: 2.2.0, 2.3.0, 2.4.0, 2.5.0, 2.6.0, 2.6.1, 2.6.2, 2.6.3
> Environment: For testing i used Vormeo ActiveMQ Docker image.
> Image is: *vromero/activemq-artemis:2.6.3-alpine*
>
> Reporter: Vuk Vasic
> Priority: Blocker
> Attachments: sample amqp 1.PNG, sample amqp 2.PNG, sample amqp 3.PNG
>
>
> For some reason after running *ActiveMQ Artemis (2.6.3)* only first topic
> created can be used for shared subscription.
> Steps to reproduce:
> # Create 2 consumers (with same Container ID and Subscription Name,
> Capabilities are: shared, topic and global) and 1 producer. The Artemis has 2
> producers in admin panel and uses round-robin for deliver of messages. (See
> sample amqp 1.PNG). Topic is named *sample4*
> # Remove consumers and producers for *sample4*
> # Create 2 consumers (with same Container ID and Subscription Name,
> Capabilities are: shared, topic and global) and 1 producer. The Artemis has
> only 1 producers in admin panel and it delivers message to only one listener.
> Topic is named *sample5*. (See sample amqp 2.PNG)
> # Repeat step 1 and now the topic *sample4* is also delivering to only one
> consumer. (See sample amqp 3.PNG)
>
> It is interesting that if you use same topic multiple times, everything
> works, But as soon as you create new topic no shared subscription over AMQP
> 1.0 are not working.
>
> *Update*
> This works fine on version 1.5.6. I also tested 2.3.0 and it does not work
> too.
>
> *New update*
> Version 2.0 and 2.1 also works fine. This seems to be an issue from version
> 2.2 to 2.6.3.
>
> *New update:*
> This issue gets more critical as 2.1 and 2.0 version have bug that if someone
> publishes to non-existent topic, after that no one can subscribe to it (No
> messages are received after that).
> But if it subscribes to topic first and then someone starts sending messages
> everything is okey, This works fine with version *2.6.3* but still now there
> is no version that i can use AMQP with without any problem.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)