bridge: lost outgoing messages with clean_session=true and local_clean_session=false #2604
Labels
Component: mosquitto-broker
Status: Completed
Nothing further to be done with this issue, it can be closed by the requestor or committer.
Type: Bug
Milestone
running on mosquitto 2.0.11
situation: local mosquitto bridges outgoing messages to remote mosquitto. also some incoming messages but the incoming messages are not important and don't have to be persisted, only the outgoing. the "remote" mosquitto is actually multiple mosquitto's running in failover without shared state so sessions cannot be persisted on the remote side reliably (each replica is also running a kafka connect instance). However, i don't want to loose local outgoing messages.
so, i set clean_session to true (so that the remote broker doesn't have to queue messages for the local one) but local_cleansession to false (because i don't want to loose outgoing messages).
however, i still seem to loose outgoing messages. When connectivity drops, i see mosquitto.db growing as expected, and if connectivity resumes, all queued messages are sent out. But when i restart mosquitto, the mosquitto.db seems to get emptied.
The text was updated successfully, but these errors were encountered: