Offline buffering not working

I have a tool that sends data from machines to the HiveMQ Edge through MQTT3.1. The data arrives in the HiveMQ edge and i have a Bridge setup to a OnPremise HiveMQ Central Broker. Everything works fine.

Now I wanted to test the offline Buffering and it just doesn’t work. When I simulate a network outage (i set a firewall rule to block port 8883) , it either doesn’t store the data locally or it does but then doesn’t push them forward after the reconnect. What is super weird is that I sometimes get around 60-180 sec of data from a buffer, but not always.

I tried in-memory and disk buffering. But somehow i don’t know how to verify if anything works?

Persistence is enabled in the HiveMQ Edge bridge.

I really don’t know what do do anymore and how to even debug this

​Hello,

Thanks for reaching out on our HiveMQ Community Forum.

Thanks for the detailed description. The pattern you see (sometimes 60–180 s recovered, sometimes nothing) usually means buffering is working but is limited by one of a few settings, or the test isn’t simulating the outage the way the bridge sees it.
To narrow it down:

  1. Which QoS does your machine tool publish with? Offline buffering is only reliable with QoS 1 or 2 end to end (machine → Edge, bridge subscription, bridge → Central).
  2. Could you share your Edge version and config.xml (bridge and persistence sections)? Edge queues bridged messages up to a limit, and at your message rate that limit may be about 1–3 minutes of data, after which new messages are dropped.
  3. Which firewall rule do you use? A silent DROP rule means the bridge only notices the outage after the keep-alive timeout (around 90 s by default), and messages sent in that window can be lost. A REJECT rule gives a clean, immediate disconnect.

For a test you can verify, we suggest publishing messages with a sequence number at a fixed rate, recording them on Central with a persistent QoS 1 subscriber, and sending us the Edge log (with bridge DEBUG logging) and the Edge metrics before, during and after the
outage. That will show exactly where messages are lost.

Regards,
Gil