apache / jmeter

Apache JMeter open-source load testing tool for analyzing and measuring the performance of a variety of services
https://jmeter.apache.org/
Apache License 2.0
8.42k stars 2.1k forks source link

JMS Subscriber infinite loop #5536

Open asfimport opened 3 years ago

asfimport commented 3 years ago

alessiogiovanni.baroni (Bug 65305): With an up and running but empty queue on ActiveMQ Artemis broker the JMS Subscriber loops indefinitely although I have 1 thread with 1 loop count.

If I enclose the JMS Subscriber within a Runtime Controller with a strictly positive Runtime (seconds) the behaviour doesn't change.

Severity: normal OS: Linux

asfimport commented 3 years ago

alessiogiovanni.baroni (migrated from Bugzilla): With a TRACE level there is this message forever:

2021-05-14 13:40:27,330 TRACE o.a.a.a.c.p.c.i.ChannelImpl: RemotingConnectionID=3804381c Writing buffer for channelID=11 2021-05-14 13:40:27,332 TRACE o.a.a.a.c.p.c.i.RemotingConnectionImpl: RemotingConnectionID=3804381c handling packet PACKET(SessionReceiveMessage)[type=75, channelID=11, responseAsync=false, requiresResponse=false, correlationID=-1, packetObject=SessionReceiveMessage, message=ClientMessageImpl[messageID=707152, durable=false, address=Test,userID=null,properties=TypedProperties[_hornetq.forced.delivery.seq=699]], consumerID=0, deliveryCount=0] 2021-05-14 13:40:27,332 TRACE o.a.a.a.c.c.i.ClientConsumerImpl: org.apache.activemq.artemis.core.client.impl.ClientConsumerImpl@66e64f6e{consumerContext=ActiveMQConsumerContext{id=0}, queueName=Test}::There was nothing on the queue, leaving it now:: returning null 2021-05-14 13:40:27,332 TRACE o.a.a.a.c.c.i.ClientConsumerImpl: org.apache.activemq.artemis.core.client.impl.ClientConsumerImpl@66e64f6e{consumerContext=ActiveMQConsumerContext{id=0}, queueName=Test}:: returning null 2021-05-14 13:40:27,332 TRACE o.a.a.a.c.c.i.ClientConsumerImpl: org.apache.activemq.artemis.core.client.impl.ClientConsumerImpl@66e64f6e{consumerContext=ActiveMQConsumerContext{id=0}, queueName=Test}:: receive(500) 2021-05-14 13:40:27,332 TRACE o.a.a.a.c.c.i.ClientConsumerImpl: org.apache.activemq.artemis.core.client.impl.ClientConsumerImpl@66e64f6e{consumerContext=ActiveMQConsumerContext{id=0}, queueName=Test}::receive(500, false) 2021-05-14 13:40:27,832 TRACE o.a.a.a.c.c.i.ClientConsumerImpl: org.apache.activemq.artemis.core.client.impl.ClientConsumerImpl@66e64f6e{consumerContext=ActiveMQConsumerContext{id=0}, queueName=Test}::Returning null 2021-05-14 13:40:27,832 TRACE o.a.a.a.c.c.i.ClientConsumerImpl: org.apache.activemq.artemis.core.client.impl.ClientConsumerImpl@66e64f6e{consumerContext=ActiveMQConsumerContext{id=0}, queueName=Test}:: receive(500) -> null, trying again with receive(0) 2021-05-14 13:40:27,832 TRACE o.a.a.a.c.c.i.ClientConsumerImpl: org.apache.activemq.artemis.core.client.impl.ClientConsumerImpl@66e64f6e{consumerContext=ActiveMQConsumerContext{id=0}, queueName=Test}::receive(0, true) 2021-05-14 13:40:27,833 TRACE o.a.a.a.c.c.i.ClientConsumerImpl: org.apache.activemq.artemis.core.client.impl.ClientConsumerImpl@66e64f6e{consumerContext=ActiveMQConsumerContext{id=0}, queueName=Test}::Forcing delivery 2021-05-14 13:40:27,833 TRACE o.a.a.a.c.p.c.i.ChannelImpl: RemotingConnectionID=3804381c Sending packet nonblocking PACKET(SessionForceConsumerDelivery)[type=78, channelID=11, responseAsync=false, requiresResponse=false, correlationID=-1, packetObject=SessionForceConsumerDelivery, consumerID=0, sequence=700] on channelID=11

asfimport commented 3 years ago

@FSchumacher (migrated from Bugzilla): Can you provide a minimal test plan to reproduce?

Have you set up a timeout value on the sampler?