emqx / mqtt-jmeter

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

SubSampler 500 error code #73

Open guaychou opened 4 years ago

guaychou commented 4 years ago

Hey I get this issues,

MQTT Sub Sampler,500,Subscribe failed because connection is not established.,

Broker: Mosquitto Endpoint: Amazon ELB

The publisher is working, but sub sampler not working. If I make sub connection with mosquitto_sub command it's work

How can I fix this issues ? thank you

chongyuanyin commented 4 years ago

Could you please give more information on your script? As the "connection is not established" error info shows the issue with connection, which hasn't reached the actual sub job yet. If the pub works, then the connection should be ok, so wondering if you can show us how the script is organized. Thanks.

guaychou commented 4 years ago

@chongyuanyin can i ask you something about, what happen if ther mqtt broker collapse ? Can mqtt sampler reconnect to it automatically ?

chongyuanyin commented 4 years ago

There are reconnection options in the "MQTT Connect" sampler to confine how the reconnection should work.

guaychou commented 4 years ago

If something like this

image by default connect sampler will reconnect right ?

guaychou commented 4 years ago

can i get changelog about version 1.13.0 ? @chongyuanyin