Skip to content

Fixing issue: QOS not set for incoming messages from $iothub/twin/PAT…#1747

Merged
timtay-microsoft merged 2 commits into
Azure:mainfrom
dzakub:bugfix/1746
Oct 17, 2023
Merged

Fixing issue: QOS not set for incoming messages from $iothub/twin/PAT…#1747
timtay-microsoft merged 2 commits into
Azure:mainfrom
dzakub:bugfix/1746

Conversation

@dzakub
Copy link
Copy Markdown
Contributor

@dzakub dzakub commented Oct 12, 2023

…CH/properties/desired/ topic #1746

Checklist

Reference/Link to the issue solved with this PR (if any)

#1746

Description of the problem

Problem is described in the issue.

Description of the solution

Added code to copy QOS from original message.

@dzakub
Copy link
Copy Markdown
Contributor Author

dzakub commented Oct 12, 2023

@microsoft-github-policy-service agree

@timtay-microsoft
Copy link
Copy Markdown
Member

timtay-microsoft commented Oct 16, 2023

This change seems reasonable, but these messages always have a QoS of 0, so I'm not sure what change in behavior you'll see from this. Are you expecting QoS other than 0 here?

@dzakub
Copy link
Copy Markdown
Contributor Author

dzakub commented Oct 17, 2023

This change seems reasonable, but these messages always have a QoS of 0, so I'm not sure what change in behavior you'll see from this. Are you expecting QoS other than 0 here?

I didn't know that IOT hub sends always massages with QOS 0 here. If there will be no change in behavior.
I discovered this 'issue' whlie stubbing iot hub for integration tests that were written to document behavior of 1.x clients and to ease upgrading to 2.x.
Tests were green for 1.x, but started failing after upgrade to 2.x. After investigation I discovered mentioned problem (my fake iot hub was sending messages with QOS 1)

…ure/sdk/iot/device/transport/mqtt/MqttTwin.java

Co-authored-by: Tim Taylor <timtay@microsoft.com>
@timtay-microsoft
Copy link
Copy Markdown
Member

/azp run

@azure-pipelines
Copy link
Copy Markdown

No pipelines are associated with this pull request.

@timtay-microsoft
Copy link
Copy Markdown
Member

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@timtay-microsoft timtay-microsoft merged commit b39cc38 into Azure:main Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants