Uploaded image for project: 'AMQ Broker'
  1. AMQ Broker
  2. ENTMQBR-912

Failed to remove auto-created queue sharedConsumerNonDurable123:shared-volatile:global

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • AMQ 7.1.0.CR2
    • AMQ 7.1.0.GA
    • None
    • Hide
      1. Download broker and create default instance
      2. git clone https://github.com/kornys/DurableSubscriptionTest.git
      3. cd DurableSubscriptionTest
      4. mvn -Dtest=topictests.TopicDurableTests#testSharedNonDurableSubscription test
      Show
      Download broker and create default instance git clone https://github.com/kornys/DurableSubscriptionTest.git cd DurableSubscriptionTest mvn -Dtest=topictests.TopicDurableTests#testSharedNonDurableSubscription test

      When I tried to create 3 non-durable shared subscribers subscribed to jmsTopic and tried to send/receive 10 messages in cycle (2 iterations are enough, but in test it's running in 3 iterations) then everything seems to be ok (messages are sent/received correctly), but in log of broker you can see following error: (error is logged during closing session1: https://github.com/kornys/DurableSubscriptionTest/blob/master/src/test/java/topictests/TopicDurableTests.java#L155 )

      13:32:36,454 ERROR [org.apache.activemq.artemis.core.server] AMQ224065: Failed to remove auto-created queue sharedConsumerNonDurable123:shared-volatile:global: ActiveMQIllegalStateException[errorType=ILLEGAL_STATE message=AMQ119025: Cannot delete queue sharedConsumerNonDurable123:shared-volatile:global on binding sharedConsumerNonDurable123:shared-volatile:global - it has consumers = org.apache.activemq.artemis.core.postoffice.impl.LocalQueueBinding]
      	at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.destroyQueue(ActiveMQServerImpl.java:1844) [artemis-server-2.4.0.jar:2.4.0]
      	at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.destroyQueue(ActiveMQServerImpl.java:1814) [artemis-server-2.4.0.jar:2.4.0]
      	at org.apache.activemq.artemis.core.server.impl.QueueManagerImpl$1.run(QueueManagerImpl.java:55) [artemis-server-2.4.0.jar:2.4.0]
      	at org.apache.activemq.artemis.utils.ReferenceCounterUtil.decrement(ReferenceCounterUtil.java:54) [artemis-commons-2.4.0.jar:2.4.0]
      	at org.apache.activemq.artemis.core.server.impl.QueueManagerImpl.decrement(QueueManagerImpl.java:86) [artemis-server-2.4.0.jar:2.4.0]
      	at org.apache.activemq.artemis.core.server.impl.QueueImpl.removeConsumer(QueueImpl.java:918) [artemis-server-2.4.0.jar:2.4.0]
      	at org.apache.activemq.artemis.core.server.impl.ServerConsumerImpl.removeItself(ServerConsumerImpl.java:546) [artemis-server-2.4.0.jar:2.4.0]
      	at org.apache.activemq.artemis.core.server.impl.ServerConsumerImpl.close(ServerConsumerImpl.java:491) [artemis-server-2.4.0.jar:2.4.0]
      	at org.apache.activemq.artemis.protocol.amqp.broker.AMQPSessionCallback$2.done(AMQPSessionCallback.java:322) [artemis-amqp-protocol-2.4.0.jar:]
      	at org.apache.activemq.artemis.core.persistence.impl.journal.OperationContextImpl.executeOnCompletion(OperationContextImpl.java:181) [artemis-server-2.4.0.jar:2.4.0]
      	at org.apache.activemq.artemis.core.persistence.impl.journal.OperationContextImpl.executeOnCompletion(OperationContextImpl.java:130) [artemis-server-2.4.0.jar:2.4.0]
      	at org.apache.activemq.artemis.protocol.amqp.broker.AMQPSessionCallback.closeSender(AMQPSessionCallback.java:318) [artemis-amqp-protocol-2.4.0.jar:]
      	at org.apache.activemq.artemis.protocol.amqp.proton.ProtonServerSenderContext.close(ProtonServerSenderContext.java:492) [artemis-amqp-protocol-2.4.0.jar:]
      	at org.apache.activemq.artemis.protocol.amqp.proton.AMQPSessionContext.close(AMQPSessionContext.java:126) [artemis-amqp-protocol-2.4.0.jar:]
      	at org.apache.activemq.artemis.protocol.amqp.proton.AMQPConnectionContext.onRemoteClose(AMQPConnectionContext.java:444) [artemis-amqp-protocol-2.4.0.jar:]
      	at org.apache.activemq.artemis.protocol.amqp.proton.handler.Events.dispatch(Events.java:56) [artemis-amqp-protocol-2.4.0.jar:]
      	at org.apache.activemq.artemis.protocol.amqp.proton.handler.ProtonHandler.dispatch(ProtonHandler.java:450) [artemis-amqp-protocol-2.4.0.jar:]
      	at org.apache.activemq.artemis.protocol.amqp.proton.handler.ProtonHandler.flush(ProtonHandler.java:279) [artemis-amqp-protocol-2.4.0.jar:]
      	at org.apache.activemq.artemis.protocol.amqp.proton.handler.ProtonHandler.inputBuffer(ProtonHandler.java:243) [artemis-amqp-protocol-2.4.0.jar:]
      	at org.apache.activemq.artemis.protocol.amqp.proton.AMQPConnectionContext.inputBuffer(AMQPConnectionContext.java:150) [artemis-amqp-protocol-2.4.0.jar:]
      	at org.apache.activemq.artemis.protocol.amqp.broker.ActiveMQProtonRemotingConnection.bufferReceived(ActiveMQProtonRemotingConnection.java:141) [artemis-amqp-protocol-2.4.0.jar:]
      	at org.apache.activemq.artemis.core.remoting.server.impl.RemotingServiceImpl$DelegatingBufferHandler.bufferReceived(RemotingServiceImpl.java:642) [artemis-server-2.4.0.jar:2.4.0]
      	at org.apache.activemq.artemis.core.remoting.impl.netty.ActiveMQChannelHandler.channelRead(ActiveMQChannelHandler.java:68) [artemis-core-client-2.4.0.jar:2.4.0]
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [netty-all-4.1.16.Final.jar:4.1.16.Final]
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [netty-all-4.1.16.Final.jar:4.1.16.Final]
      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) [netty-all-4.1.16.Final.jar:4.1.16.Final]
      	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1359) [netty-all-4.1.16.Final.jar:4.1.16.Final]
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [netty-all-4.1.16.Final.jar:4.1.16.Final]
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [netty-all-4.1.16.Final.jar:4.1.16.Final]
      	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:935) [netty-all-4.1.16.Final.jar:4.1.16.Final]
      	at io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(AbstractEpollStreamChannel.java:797) [netty-all-4.1.16.Final.jar:4.1.16.Final]
      	at io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:404) [netty-all-4.1.16.Final.jar:4.1.16.Final]
      	at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:304) [netty-all-4.1.16.Final.jar:4.1.16.Final]
      	at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858) [netty-all-4.1.16.Final.jar:4.1.16.Final]
      	at java.lang.Thread.run(Thread.java:748) [rt.jar:1.8.0_144]
      
      
      

            rh-ee-ataylor Andy Taylor
            tkratky_jira Tomas Kratky (Inactive)
            David Kornel David Kornel
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: