[
https://issues.apache.org/jira/browse/ARTEMIS-1929?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16654568#comment-16654568
]
Justin Bertram commented on ARTEMIS-1929:
-----------------------------------------
I've identified a race condition due to concurrent durable subscribers
connecting before the durable subscription is created. I should have a PR soon.
In the mean-time you could potentially work-around the issue by staggering the
start times of your concurrent durable subscribers (although that may be
impossible to coordinate) or you could just retry the creation of the durable
subscription.
> Cannot have two durable consumers on the same queue (STOMP)
> -----------------------------------------------------------
>
> Key: ARTEMIS-1929
> URL: https://issues.apache.org/jira/browse/ARTEMIS-1929
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Reporter: Lionel Cons
> Assignee: Justin Bertram
> Priority: Major
> Attachments: ARTEMIS-1929.log
>
>
> When testing STOMP durable subscriptions, I got errors when having more that
> one consumer on the same "queue" (i.e. with the same topic, {{client-id}} and
> {{durable-subscription-name}}).
> Artemis reports:
> {code}
> 2018-06-13 11:27:45,548 WARN
> [org.apache.activemq.artemis.core.protocol.stomp] AMQ222069: Sent ERROR frame
> to STOMP client /127.0.0.1:45694: AMQ339016 Error creating subscription
> 2836570-5b20e391-7fb0-a81b-1
> {code}
> Here is my setup:
> * two STOMP consumers (different connections)
> * using the same topic name, {{client-id}} and {{durable-subscription-name}}
> triplet
> I got this when trying to reproduce what we use with ActiveMQ 5 virtual
> queues, that is:
> * producers sending to a topic
> * different virtual queues attached (e.g. "test" and "prod")
> * multiple concurrent consumers on each queue to split the consuming load
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)