/
Connect and Disconnect Event log message ordering

Connect and Disconnect Event log message ordering

Question

Why is it possible that I see messages regarding the connect and disconnect events of clients in my event.log file out of order, where the disconnect sometimes appears ahead of the corresponding connect?

Answer

To ensure HiveMQ’s best in class performance task like logging disconnect and connect events are handled asynchronously. As a result the entries in the event.log may sometimes appear out of order.
This has no impact on HiveMQ's operation and guarantees.

Related content

onConnectionLost and onServerInitiatedDisconnect event behavior
onConnectionLost and onServerInitiatedDisconnect event behavior
More like this
"Outgoing publish message was dropped. Receiving consumer: ... "
"Outgoing publish message was dropped. Receiving consumer: ... "
More like this
Client Event History performance decreases over time
Client Event History performance decreases over time
More like this
MQTTv3 client disconnected with reason: Sent too many concurrent PUBLISH messages.
MQTTv3 client disconnected with reason: Sent too many concurrent PUBLISH messages.
More like this