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

Client sends PubComp after disconnect.

Open
#41 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.3k
Forks
919
PR merge metrics
No merged PRs in 30d

Description

migrated from Bugzilla [#468334](https://bugs.eclipse.org/bugs/show_bug.cgi?id=468334)
status UNCONFIRMED severity _normal_ in component _MQTT-Java_ for _1.2_
Reported in version _1.0_ on platform _PC_
Assigned to: Ian Craggs

On 2015-05-26 10:34:38 -0400, Andrew Banks wrote:

> A client application executes:
>
> Connect,
> Subscribe,
> Publish Qos=2,
> Receives the published message.
> Disconnect.
>
> The server returns the publication without waiting for the client PubRel, as it is allowed to do.
>
> Occasionally the client sends PubComp for the message it has received, after the final disconnect packet.
>
> Sequence of packets observed in the server.
>
> 3 Mon May 18 22:58:07 BST 2015 SEND_MQTT mqttMessageType:SUBACK
> 4 Mon May 18 22:58:07 BST 2015 RECEIVED_MQTT mqttMessageType:PUBLISH
> 5 Mon May 18 22:58:07 BST 2015 SEND_MQTT mqttMessageType:PUBREC
> 6 Mon May 18 22:58:07 BST 2015 SEND_MQTT mqttMessageType:PUBLISH
> 7 Mon May 18 22:58:07 BST 2015 RECEIVED_MQTT mqttMessageType:PUBREL
> 8 Mon May 18 22:58:07 BST 2015 SEND_MQTT mqttMessageType:PUBCOMP
> 9 Mon May 18 22:58:07 BST 2015 RECEIVED_MQTT mqttMessageType:PUBREC
> 0 Mon May 18 22:58:07 BST 2015 SEND_MQTT mqttMessageType:PUBREL
> 1 Mon May 18 22:58:07 BST 2015 RECEIVED_MQTT mqttMessageType:DISCONNECT
> 2 Mon May 18 22:58:07 BST 2015 RECEIVED_MQTT mqttMessageType:PUBCOMP
> 113 historyIndex=3(int)
>
> SEND_MQTT means sent by the server,
> RECEIVED_MQTT means received by the server.

On 2015-06-05 05:53:41 -0400, Ian Craggs wrote:

> Andy, is there a specific test program which exhibits this problem?

On 2015-06-08 05:26:11 -0400, Andrew Banks wrote:

> Ian, we've seen this from a number of tests, all of them run multiple clients in the same JVM. I've sent you some examples separately.

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.