Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
ARTEMIS-2206 The MQTT consumer reconnection caused the queue to not be cle… #2466
Analysis and simulation reproduction
When the MQTT consumer client (cleanSession property set to true) reconnected,There is a certain probability that the queue will not be automatically cleared and a NullPointerException will be thrown.
When 'session.getProtocolManager().isClientConnected(clientId, session.getConnection())' is called, if the 'MQTTConnection' instance retrieved from 'connectedClients' is 'null', a NullPointerException is thrown. Add a non-null decision in the 'MQTTProtocolManager.isClientConnected' method.
Regarding automated testing, in addition to the simulation method that I said, do you have any better suggestions?
changed the title
NO-JIRA The MQTT consumer reconnection caused the queue to not be cle…
Dec 18, 2018
you do this on your branch:
git rebase -i HEAD~4
for each line, squash all 3 later commits into the first one,
Once you squash you will be sent to a vim (or another editor you configured) where you can change the tittle.
make the title reflect the JIRA,
git push origin -f (your branch name)
That will be enough to update this PR.
referenced this pull request
Jan 9, 2019
@jbertram I found an interesting Issue; That is why my RP failures in
Tested in the master!!
I created a jira ARTEMIS-2226
@jbertram I have a question to consult you and hope you can answer it.
Even these are not problems. But this will export when using different keys(use addressName as key or use "clientId+'.'+addressName" as key) to store the binding, we can't make sure that all calls to the
I hope you can help me identify the problem so that I can determine how to solve it.