eclipse-paho / eclipse-paho/paho.mqtt.java

After automatic reconnection, client appears connected but messages to publish keep getting buffered

Open
#348 24 comments 0 reactions 1 assignee Claimed by @icraggs View on GitHub
More Information Required triage
Dominant language
Java
Stars
2.3k
Forks
919
PR merge metrics
No merged PRs in 30d

Description

- [x] Bug exists Release Version 1.1.1 ( Master Branch)
- [ ] Bug exists in Snapshot Version 1.1.2-SNAPSHOT (Develop Branch)

We're using eclipse.paho.client.mqttv3 1.1.1 and observe the following (rare) behavior :

Sometimes, after an automatic reconnection to the broker, the client appears connected anew (isConnected() returns `true`) but new messages keep getting buffered (buffer queue continue to grow until eventually service is restarted).

We monitor `isConnected`, `getBufferedMessageCount` & `getPendingDeliveryTokens` size ; you can see their behavior in such an instance :

screen shot 2017-04-03 at 12 00 10 pm

The issue is hard to reproduce since it seems to happen only sporadically (many auto reconnections do not yield this situation).

Are there other metrics we should look for? Something specific in the logs?

Thanks in advance

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.