You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently I found my device will lose some messages. After enabling verbose log and digging into, I found it is due to unexpected matching with sequence number.
Here are my analysis:
When the issue happening, I only found a PUBREL packet sent to device from Protocol Gateway. Normally, it should send PUBLISH packet at first.
Publish Cloud to device
Message Id received is 1ed186d2-27cd-4ca0-9e7c-fa1b24fcc1d1
Publish Cloud to device
Message Id received
Publish Cloud to device
Publish message received at 09-28-2017 03:04:56.843 for Cloud to Device transmission.
Which means messageInfo != null && messageWithFeedback.Message.SequenceNumber != messageInfo.SequenceNumber.
4. Then I checked my state provider which is storage table, I founded below records with device id as filtering condition
PartitionKey
RowKey
Timestamp
LastModified
MessageNumber
7
DEVICE001_33002
2017-05-03T10:58:07.765Z
2017-05-03T10:58:09.450Z
233
7
DEVICE001_33944
2017-06-19T05:38:47.198Z
2017-06-19T05:38:46.826Z
1175
1
DEVICE001_32786
2017-08-17T00:42:48.145Z
2017-08-17T00:42:49.222Z
17
7
DEVICE001_32795
2017-08-17T01:11:41.114Z
2017-08-17T01:11:41.286Z
26
There were obsolete records, and defenitely not the right state for messages I am sending now because current date is 2017-09-28. And here message number is the value of sequence number. So seems sequence number recycled to reach a duplicate one with value in table.
The text was updated successfully, but these errors were encountered:
Recently I found my device will lose some messages. After enabling verbose log and digging into, I found it is due to unexpected matching with sequence number.
Here are my analysis:
Which means messageInfo != null && messageWithFeedback.Message.SequenceNumber != messageInfo.SequenceNumber.
4. Then I checked my state provider which is storage table, I founded below records with device id as filtering condition
The text was updated successfully, but these errors were encountered: