emqx / mqtt-jmeter

MQTT JMeter Plugin
https://www.emqx.com/en
Apache License 2.0
445 stars 194 forks source link

When server had some error, after client reconnect success, cann't receive any message #134

Open lycherish opened 1 year ago

lycherish commented 1 year ago

Hi Team,

Jmeter (V5.1.1) not receiving MQTT message when the below server exception occurs. Please help xmeter JAR : mqtt-xmeter-2.0.2-jar-with-dependencies.jar Test Scenario: Cluster high-availability scenarios, jmeter connect nginx server, and then subscriber topic,after the server occur, the client can automatically reconnect, and expect to continue receiving new messages

Exception: After the server is disconnected, the client is automatically reconnected, there is a new connect between client and server, but somebody else publish a new msg, the Mqtt Sub Sampler can not receive new message.

I guess when reconnect succuess, the sampler don't know the connect changed,and there is no monitor for connect change.

Could you help me fix this issue, thank you very much.

Jadeite09 commented 1 year ago
  1. Please make sure set clientid and clean session=false
  2. Which MQTT broker version used