-
Bug
-
Resolution: Done
-
Major
-
AMQ 7.1.0.GA
-
None
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]