The dequeued counter for topics seems to go wrong when subscribers disconnect.
Here is how to reproduce:
- start with a fresh topic: all counters are at 0
- start a consumer
- start a producer that sends one message and disconnect, we get: enqueued=1, dequeued=1, dispatched=1
- stop the consumer, we now get: enqueued=1, dequeued=2
FWIW, when using a queue, the dequeued counter stays at one even after the consumer disconnection.