activemq-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ARTEMIS-1818) Reconnecting core JMS client won't re-create auto-created queue
Date Fri, 20 Apr 2018 01:08:00 GMT

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

ASF GitHub Bot commented on ARTEMIS-1818:
-----------------------------------------

Github user jbertram commented on a diff in the pull request:

    https://github.com/apache/activemq-artemis/pull/2034#discussion_r182924057
  
    --- Diff: artemis-core-client/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/ActiveMQSessionContext.java
---
    @@ -772,6 +772,10 @@ public void recreateConsumerOnServer(ClientConsumerInternal consumerInternal,
           if (!queueInfo.isDurable()) {
              CreateQueueMessage_V2 createQueueRequest = new CreateQueueMessage_V2(queueInfo.getAddress(),
queueInfo.getName(), queueInfo.getRoutingType(), queueInfo.getFilterString(), false, queueInfo.isTemporary(),
queueInfo.getMaxConsumers(), queueInfo.isPurgeOnNoConsumers(), queueInfo.isAutoCreated(),
false, queueInfo.isExclusive(), queueInfo.isLastValue());
     
    +         sendPacketWithoutLock(sessionChannel, createQueueRequest);
    +      } else if (queueInfo.isAutoCreated()) {
    --- End diff --
    
    Will do, @michaelandrepearce. That's a much more elegant solution.


> Reconnecting core JMS client won't re-create auto-created queue
> ---------------------------------------------------------------
>
>                 Key: ARTEMIS-1818
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-1818
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>    Affects Versions: 2.5.0
>            Reporter: Justin Bertram
>            Assignee: Justin Bertram
>            Priority: Major
>
> Scenario:
> * Start broker
> * core JMS client sends message to queue
> * broker auto-creates queue & receives message
> * core JMS client creates consumer on queue and consumes the message; consumer's connection
uses reconnectAttempts=-1
> * stop broker
> * during shutdown the consumer is disconnected and since the message-count is already
0 that means the broker will auto-delete the consumer's queue
> * start broker
> * consumer automatically reconnects
> * broker throws an error that the consumer's queue doesn't exist
> * consumer is broken and will not receive any messages



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message