Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Oct 17, 2023

Conversation

dzakub
Copy link
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
Contributor Author

dzakub commented Oct 12, 2023

@microsoft-github-policy-service agree

@timtay-microsoft
Copy link
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
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
Member

/azp run

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@timtay-microsoft
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@timtay-microsoft timtay-microsoft merged commit b39cc38 into Azure:main Oct 17, 2023
1 of 7 checks passed
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